{"name":"esquery","version":"1.7.0","author":{"name":"Joel Feenstra","email":"jrfeenst+esquery@gmail.com"},"contributors":[],"description":"A query library for ECMAScript AST using a CSS selector like query language.","main":"dist/esquery.min.js","module":"dist/esquery.esm.min.js","nyc":{"branches":100,"lines":100,"functions":100,"statements":100,"reporter":["html","text"],"exclude":["parser.js","dist","tests"]},"scripts":{"prepublishOnly":"npm run build && npm test","build:parser":"rm parser.js && pegjs --cache --format umd -o \"parser.js\" \"grammar.pegjs\"","build:browser":"rollup -c","build":"npm run build:parser && npm run build:browser","mocha":"mocha --require chai/register-assert --require @babel/register tests","test":"nyc npm run mocha && npm run lint","test:ci":"npm run mocha","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/estools/esquery.git"},"bugs":{"url":"https://github.com/estools/esquery/issues"},"homepage":"https://github.com/estools/esquery/","keywords":["ast","ecmascript","javascript","query"],"devDependencies":{"@babel/core":"^7.9.0","@babel/preset-env":"^7.9.5","@babel/register":"^7.9.0","@rollup/plugin-commonjs":"^11.1.0","@rollup/plugin-json":"^4.0.2","@rollup/plugin-node-resolve":"^7.1.3","babel-plugin-transform-es2017-object-entries":"0.0.5","chai":"4.2.0","eslint":"^6.8.0","esprima":"~4.0.1","mocha":"7.1.1","nyc":"^15.0.1","pegjs":"~0.10.0","rollup":"^1.32.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-terser":"^5.3.0"},"license":"BSD-3-Clause","engines":{"node":">=0.10"},"dependencies":{"estraverse":"^5.1.0"},"gitHead":"444da2c9b1f973555102b0e3a2c62f5d607dc6fe","_id":"esquery@1.7.0","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==","shasum":"08d048f261f0ddedb5bae95f46809463d9c9496d","tarball":"http://registry-npm.ywwl.com/esquery/download/esquery-1.7.0.tgz","fileCount":13,"unpackedSize":1097084,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCPj+J+nfa7MLxt1QZSBlQ6bovXicWKRNdWbZsV2CEo5QIgOggqm241umHdTptzfh8PfkWRzRxZLaK676XWXK35JUU="}],"size":166185,"noattachment":false,"key":"/esquery/-/esquery-1.7.0.tgz"},"_npmUser":{"name":"michaelficarra","email":"npm@michael.ficarra.me"},"directories":{},"maintainers":[{"name":"jrfeenst","email":"jrfeenst@gmail.com"},{"name":"michaelficarra","email":"npm@michael.ficarra.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/esquery_1.7.0_1767195897444_0.10181755548778271"},"_hasShrinkwrap":false,"readme":"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:\n\n[demo](https://estools.github.io/esquery/)\n\nThe following selectors are supported:\n* AST node type: `ForStatement`\n* [wildcard](http://dev.w3.org/csswg/selectors4/#universal-selector): `*`\n* [attribute existence](http://dev.w3.org/csswg/selectors4/#attribute-selectors): `[attr]`\n* [attribute value](http://dev.w3.org/csswg/selectors4/#attribute-selectors): `[attr=\"foo\"]` or `[attr=123]`\n* attribute regex: `[attr=/foo.*/]` or (with flags) `[attr=/foo.*/is]`\n* attribute conditions: `[attr!=\"foo\"]`, `[attr>2]`, `[attr<3]`, `[attr>=2]`, or `[attr<=3]`\n* nested attribute: `[attr.level2=\"foo\"]`\n* field: `FunctionDeclaration > Identifier.id`\n* [First](http://dev.w3.org/csswg/selectors4/#the-first-child-pseudo) or [last](http://dev.w3.org/csswg/selectors4/#the-last-child-pseudo) child: `:first-child` or `:last-child`\n* [nth-child](http://dev.w3.org/csswg/selectors4/#the-nth-child-pseudo) (no ax+b support): `:nth-child(2)`\n* [nth-last-child](http://dev.w3.org/csswg/selectors4/#the-nth-last-child-pseudo) (no ax+b support): `:nth-last-child(1)`\n* [descendant](http://dev.w3.org/csswg/selectors4/#descendant-combinators): `ancestor descendant`\n* [child](http://dev.w3.org/csswg/selectors4/#child-combinators): `parent > child`\n* [following sibling](http://dev.w3.org/csswg/selectors4/#general-sibling-combinators): `node ~ sibling`\n* [adjacent sibling](http://dev.w3.org/csswg/selectors4/#adjacent-sibling-combinators): `node + adjacent`\n* [negation](http://dev.w3.org/csswg/selectors4/#negation-pseudo): `:not(ForStatement)`\n* [has](https://drafts.csswg.org/selectors-4/#has-pseudo): `:has(ForStatement)`, `:has(> ForStatement)`\n* [matches-any](http://dev.w3.org/csswg/selectors4/#matches): `:is([attr] > :first-child, :last-child)`\n* [subject indicator](http://dev.w3.org/csswg/selectors4/#subject): `!IfStatement > [name=\"foo\"]`\n* class of AST node: `:statement`, `:expression`, `:declaration`, `:function`, or `:pattern`\n\n[![Build Status](https://travis-ci.org/estools/esquery.png?branch=master)](https://travis-ci.org/estools/esquery)\n","publish_time":1767195897664,"_cnpm_publish_time":1767195897664,"dist-tags":{"latest":"1.7.0"}}