All Projects → scottcgi → MojoJS-Query

scottcgi / MojoJS-Query

Licence: MIT license
A pure javascript CSS Selector engine.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to MojoJS-Query

animusjs
🎆 AnimusJS is the solution for combine JS and CSS animations.
Stars: ✭ 42 (+90.91%)
Mutual labels:  javascript-library
easevalidation
javascript validation library
Stars: ✭ 14 (-36.36%)
Mutual labels:  javascript-library
ionic-image-upload
Ionic Plugin for Uploading Images to Amazon S3
Stars: ✭ 26 (+18.18%)
Mutual labels:  javascript-library
placekey-js
placekey.io
Stars: ✭ 19 (-13.64%)
Mutual labels:  javascript-library
blaver
A JavaScript library built on top of the Faker.JS library. It generates massive amounts of fake data in the browser and node.js.
Stars: ✭ 112 (+409.09%)
Mutual labels:  javascript-library
sqlweb
SqlWeb is an extension of JsStore which allows to use sql query for performing database operation in IndexedDB.
Stars: ✭ 38 (+72.73%)
Mutual labels:  javascript-library
Amino.JS
A powerful JavaScript library for interacting with the Amino API 🌟
Stars: ✭ 25 (+13.64%)
Mutual labels:  javascript-library
safe-touch
⛓ Runtime optional chaining for JS
Stars: ✭ 71 (+222.73%)
Mutual labels:  javascript-library
Glize
📚 Glize is a clean and robust pure Javascript library.
Stars: ✭ 16 (-27.27%)
Mutual labels:  javascript-library
aws-amplify-react-custom-ui
Building a Custom UI Authentication For AWS Amplify
Stars: ✭ 21 (-4.55%)
Mutual labels:  javascript-library
prime.js
Prime JS is a different kind of JavaScript framework. Prime is written in 100% standard, explicit, and namespaced Object Oriented JavaScript.
Stars: ✭ 13 (-40.91%)
Mutual labels:  javascript-library
tarballjs
Javascript library to create or read tar files in the browser
Stars: ✭ 24 (+9.09%)
Mutual labels:  javascript-library
oojs-ui
OOUI is a modern JavaScript UI library with strong cross-browser support. It is the standard library for MediaWiki and Wikipedia. This is a mirror from https://gerrit.wikimedia.org. Main website:
Stars: ✭ 45 (+104.55%)
Mutual labels:  javascript-library
html-chain
🔗 A super small javascript library to make html by chaining javascript functions
Stars: ✭ 32 (+45.45%)
Mutual labels:  javascript-library
ethairballoons
A strictly typed ORM library for Ethereum blockchain.
Stars: ✭ 27 (+22.73%)
Mutual labels:  javascript-library
puddle.js
An ASCII/Node based fluid simulation library.
Stars: ✭ 102 (+363.64%)
Mutual labels:  javascript-library
ImagerJs
A JavaScript library for uploading images using drag & drop. Crop, rotate, resize, or shrink your image before uploading.
Stars: ✭ 101 (+359.09%)
Mutual labels:  javascript-library
nojs
Library that helps minimize js you have to write
Stars: ✭ 118 (+436.36%)
Mutual labels:  javascript-library
GifWriter.js
GIF (version 89a) Encoder written in TypeScript
Stars: ✭ 41 (+86.36%)
Mutual labels:  javascript-library
react-picture-annotation
A simple annotation component.
Stars: ✭ 53 (+140.91%)
Mutual labels:  javascript-library

MojoJS-Query v2.0.0

MojoJS-Query is a pure javascript CSS Selector engine.

It not only supports full CSS3 Selectors and more, and easy-to-extend, but also has very simple, beautiful, easy-to-understand code structure and implementation ideas.

The Online Speed-Test shows the support selectors and speed comparison with native query.

License

MojoJS-Query is licensed under the MIT License.

How to use

/**
 * Query HTMLElements by css seletor and context.
 * 
 * @param  {String}                                                          selector
 * @param  {String (selector) | HTMLElement | Array<HTMLElement> | NodeList} context (optional)
 * @return {Array<HTMLElement>}                                              HTMLElements Array
 */
 MojoJS.query(selector, context);

Support CSS Selectors

*
#id
E
E.cls
E F
E > F
E + F
E ~ F

E[foo]  
E[foo="bar"]    
E[foo~="bar"]   
E[foo^="bar"]   
E[foo$="bar"]   
E[foo*="bar"]   
E[foo|="en"]

E:checked
E:disabled
E:enabled
E:empty

E:only-child
E:last-child
E:first-child
E:first-of-type
E:last-of-type
E:only-of-type

E:not(s)
E:nth-child(n)
E:nth-last-child(n)
E:nth-of-type(n)
E:nth-last-of-type(n)

// Extra Selectors

:not(E)
:not(E.cls)
:not(:not(E,F))

:has(E)
:has(E.cls)
:has(:not(E,F))
:has(E > F)

[NAME!=VALUE]
:contains(TEXT)
:selected

:first
:last
:even
:odd
:nth

Support

If the source code is useful or helpful for you, maybe buy me a coffee via Sponsor Button.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].