{"name":"@putout/traverse","version":"15.0.0","keywords":["putout","traverse","putout-traverse"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/traverse@15.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/traverse#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"54399bf5311f7ef931e7ecf2ba031b8ec62cac6c","tarball":"http://registry-npm.ywwl.com/@putout/traverse/download/@putout/traverse-15.0.0.tgz","fileCount":4,"integrity":"sha512-/AD0hg+3Oc9RuvpdC3+I/SQqLJriU1CPmm4KFu1T5m+9o1MD8+6dijsbuFUeiV+XINPYX8oNdcSuTE5B6YEsNg==","signatures":[{"sig":"MEYCIQDBB3C18wYDM/NCXiF5ZVR9Zt663fLMNwF6EzUVXigZHQIhAIKGsAHssDLcsvDI4NlYxyhenhdmUBTtsJceMPB1epuT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5421,"size":2347,"noattachment":false,"key":"/@putout/traverse/-/@putout/traverse-15.0.0.tgz"},"main":"lib/traverse.js","type":"commonjs","engines":{"node":">=20"},"gitHead":"c8ea46738a1305ba981b81762ce70af9bcafd747","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"traverse ast-nodes","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@putout/babel":"^5.0.0","@putout/compare":"^19.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"v10.0.0-alpha.0","madrun":"^11.0.0","putout":"*","nodemon":"^3.0.1","supertape":"^11.0.3","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^28.0.0"},"_npmOperationalInternal":{"tmp":"tmp/traverse_15.0.0_1764346241036_0.3834841221850642","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/traverse [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/traverse.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/traverse \"npm\"\n\nTraverse AST-nodes\n\n## Install\n\n```\nnpm i @putout/traverse\n```\n\n## API\n\n### superTraverse\n\n```js\nimport {template} from '@putout/engine-parser';\nimport {superTraverse} from '@putout/traverse';\n\nconst node = template.ast('const a = b');\n\nsuperTraverse(node, {\n    'Identifier'(path) {\n        console.log('found identifier');\n    },\n    \n    'throw __a'(path, {__a}) {\n        console.log(__a);\n    },\n    \n    'await __'(path) {\n        console.log('found await');\n    },\n    'for await (__ of __) __'(path) {\n        console.log('found for-of');\n    },\n});\n```\n\n### contains\n\n```js\nimport {template} from '@putout/engine-parser';\nimport {contains} from '@putout/traverse';\n\nconst node = template.ast('async () => await x');\n\ncontains(node, [\n    'return __',\n    'throw __',\n    'await __',\n    'for await (__ of __) __',\n]);\n\n// returns\ntrue;\n```\n\n## License\n\nMIT\n","publish_time":1764346241226,"_cnpm_publish_time":1764346241226,"dist-tags":{"latest":"16.2.0"}}