ESQuery is a library for querying the AST output by Esprima for patterns of syntax using a CSS style selector system. (Evacuated from Microsoft Github)

anonymous 27834d6169 typo %!s(int64=5) %!d(string=hai) anos
debian 27834d6169 typo %!s(int64=5) %!d(string=hai) anos
tests 66d325d362 Fixes #58: check attribute type before matching against a regexp (#62) %!s(int64=6) %!d(string=hai) anos
.gitignore 6031ae0b4f add make target for browser bundle %!s(int64=11) %!d(string=hai) anos
.npmignore 3bccc49572 fixes #33: add .npmignore %!s(int64=10) %!d(string=hai) anos
.travis.yml d1bafbf7db drop node 0.8 and 0.6 from travis %!s(int64=9) %!d(string=hai) anos
Makefile 6031ae0b4f add make target for browser bundle %!s(int64=11) %!d(string=hai) anos
README.md cde1a0a53f fix travis-ci badge %!s(int64=10) %!d(string=hai) anos
esquery.js 66d325d362 Fixes #58: check attribute type before matching against a regexp (#62) %!s(int64=6) %!d(string=hai) anos
grammar.pegjs 334525423f Added :has() pseudo-selector to grammar. %!s(int64=7) %!d(string=hai) anos
license.txt 276071c889 Initial version of ESQuery. Support parsing of selectors and querying %!s(int64=11) %!d(string=hai) anos
package.json 1853a6fbaf Version 1.0.1 %!s(int64=6) %!d(string=hai) anos
parser.js 334525423f Added :has() pseudo-selector to grammar. %!s(int64=7) %!d(string=hai) anos
testRunner.html 099d9968ae Add support for attribute value type comparison. %!s(int64=11) %!d(string=hai) anos

README.md

ESQuery is a library for querying the AST output by Esprima for patterns of syntax using a CSS style selector system. Check out the demo:

demo

The following selectors are supported:

Build Status