{"_id":"dash-ast","_rev":"97292","name":"dash-ast","description":"walk an AST, quickly","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"goto-bus-stop","email":""}],"time":{"modified":"2021-06-03T10:32:40.000Z","created":"2018-05-30T13:45:08.898Z","2.0.1":"2020-03-11T09:48:11.057Z","2.0.0":"2020-03-11T09:40:50.298Z","1.0.0":"2018-05-30T13:45:08.898Z"},"users":{},"author":{"name":"Renée Kooi","email":"renee@kooi.me"},"repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/dash-ast.git"},"versions":{"2.0.1":{"name":"dash-ast","description":"walk an AST, quickly","version":"2.0.1","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/dash-ast/issues"},"devDependencies":{"acorn":"7.1.0","astw":"^2.2.0","estree-walk":"^2.2.0","estree-walker":"^2.0.0","nanobench":"^2.1.1","semver":"^6.3.0","standard":"^14.3.1","tape":"^4.11.0"},"homepage":"https://github.com/goto-bus-stop/dash-ast","keywords":["ast","estree","javascript","parse","transform","tree","visitor","walk","walker"],"license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/dash-ast.git"},"scripts":{"test":"standard && node test && node bench","test:ci":"node test && node bench"},"gitHead":"25d837ecd662b43ac6d95922f40676f2f0d76efc","_id":"dash-ast@2.0.1","_nodeVersion":"13.10.1","_npmVersion":"6.14.2","dist":{"shasum":"8d0fd2e601c59bf874cc22877ee7dd889f54dee8","size":3195,"noattachment":false,"key":"/dash-ast/-/dash-ast-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dash-ast/download/dash-ast-2.0.1.tgz"},"maintainers":[{"name":"goto-bus-stop","email":""}],"_npmUser":{"name":"goto-bus-stop","email":"renee@kooi.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dash-ast_2.0.1_1583920090917_0.7884036005980368"},"_hasShrinkwrap":false,"publish_time":1583920091057,"_cnpm_publish_time":1583920091057},"2.0.0":{"name":"dash-ast","description":"walk an AST, quickly","version":"2.0.0","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/dash-ast/issues"},"devDependencies":{"acorn":"7.1.0","astw":"^2.2.0","estree-walk":"^2.2.0","estree-walker":"^2.0.0","nanobench":"^2.1.1","semver":"^6.3.0","standard":"^14.3.1","tape":"^4.11.0"},"homepage":"https://github.com/goto-bus-stop/dash-ast","keywords":["ast","estree","javascript","parse","transform","tree","visitor","walk","walker"],"license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/dash-ast.git"},"scripts":{"test":"standard && node test && node bench","test:ci":"node test && node bench"},"gitHead":"0508e2e7576c5d5e866178deb465d97a1f92ea65","_id":"dash-ast@2.0.0","_nodeVersion":"13.10.1","_npmVersion":"6.14.2","dist":{"shasum":"e0c30357340d8d6265cbbd5b6455364eaf573c15","size":3228,"noattachment":false,"key":"/dash-ast/-/dash-ast-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dash-ast/download/dash-ast-2.0.0.tgz"},"maintainers":[{"name":"goto-bus-stop","email":""}],"_npmUser":{"name":"goto-bus-stop","email":"renee@kooi.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dash-ast_2.0.0_1583919650171_0.2830532066434648"},"_hasShrinkwrap":false,"publish_time":1583919650298,"_cnpm_publish_time":1583919650298},"1.0.0":{"name":"dash-ast","description":"walk an AST, quickly","version":"1.0.0","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/dash-ast/issues"},"devDependencies":{"acorn":"^5.5.3","astw":"^2.2.0","estree-walk":"^2.2.0","estree-walker":"^0.5.2","nanobench":"^2.1.1","standard":"^11.0.1","tape":"^4.9.0"},"homepage":"https://github.com/goto-bus-stop/dash-ast","keywords":["ast","estree","javascript","parse","transform","tree","visitor","walk","walker"],"license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/dash-ast.git"},"scripts":{"test":"standard && node test && node bench"},"gitHead":"40c443ec9f512f11a5f042a94f2cc64cc7a2849e","_id":"dash-ast@1.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.2.1","_npmUser":{"name":"goto-bus-stop","email":"rene@kooi.me"},"dist":{"shasum":"12029ba5fb2f8aa6f0a861795b23c1b4b6c27d37","size":2857,"noattachment":false,"key":"/dash-ast/-/dash-ast-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dash-ast/download/dash-ast-1.0.0.tgz"},"maintainers":[{"name":"goto-bus-stop","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dash-ast_1.0.0_1527687908731_0.6327840832694018"},"_hasShrinkwrap":false,"publish_time":1527687908898,"_cnpm_publish_time":1527687908898}},"readme":"# dash-ast\n\nwalk an AST, quickly\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n[![standard][standard-image]][standard-url]\n\n[npm-image]: https://img.shields.io/npm/v/dash-ast.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/dash-ast\n[travis-image]: https://img.shields.io/travis/goto-bus-stop/dash-ast.svg?style=flat-square\n[travis-url]: https://travis-ci.org/goto-bus-stop/dash-ast\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[standard-url]: http://npm.im/standard\n\n## Install\n\n```\nnpm install dash-ast\n```\n\n## Usage\n\n```js\nvar dashAst = require('dash-ast')\nvar isIdentifier = require('estree-is-identifier')\n\nvar deps = []\ndashAst(ast, function (node, parent) {\n  if (node.type === 'CallExpression' && isIdentifier(node.callee, 'require')) {\n    deps.push(node.arguments[0])\n  }\n})\n```\n\n## API\n\n### `dashAst(ast, callback)`\n\nCall `callback(node, parent)` on each node in `ast`. This does a preorder traversal, i.e. `callback` receives child nodes _after_ the parent node.\n\n### `dashAst(ast, { enter, leave })`\n\nCall `enter(node, parent)` on each node in `ast` before traversing its children, and call `leave(enter, parent)` on each node _after_ traversing its children. If a node does not have children, `enter()` and `leave()` are called immediately after each other.\n\n## License\n\n[Apache-2.0](LICENSE.md)\n","_attachments":{},"homepage":"https://github.com/goto-bus-stop/dash-ast","bugs":{"url":"https://github.com/goto-bus-stop/dash-ast/issues"},"license":"Apache-2.0"}