{"_id":"get-assigned-identifiers","_rev":"4-16dd9dbae0ea85b4af8912bc1907a6dd","name":"get-assigned-identifiers","description":"get a list of identifiers that are initialised by a JavaScript AST node.","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"get-assigned-identifiers","description":"get a list of identifiers that are initialised by a JavaScript AST node.","version":"1.0.0","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/get-assigned-identifiers/issues"},"devDependencies":{"acorn":"^5.2.1","standard":"^10.0.3","tape":"^4.8.0"},"homepage":"https://github.com/goto-bus-stop/get-assigned-identifiers","keywords":["ast","bindings","destructuring","identifiers","javascript","names","node"],"license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/get-assigned-identifiers.git"},"scripts":{"test":"standard && tape test/*.js"},"gitHead":"431f7743dee3904d73ef8dadf2077072769163da","_id":"get-assigned-identifiers@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.8.1","_npmUser":{"name":"goto-bus-stop","email":"rene@kooi.me"},"dist":{"integrity":"sha512-q+zCftBb/CaoLAnLwfvTcqfHf9f0slXbYDrmRq08ag4TBFCuHrhmSniH1ORH9unlLfeBWSRcWK5LhONHHADUkA==","shasum":"fce3b240b6ddd56782d37375d5831dabc781754d","tarball":"https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAVVU4wtQZ727Rq1JGUE+x7Yp9OxWK4/ASbJ1HH6ztepAiAd6Olhp8UJNaX8FIG7J4pXx02mbRqlIKAn8UmZ2jCZiQ=="}]},"maintainers":[{"name":"goto-bus-stop","email":"rene@kooi.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-assigned-identifiers-1.0.0.tgz_1510405331846_0.858357768971473"},"directories":{}},"1.1.0":{"name":"get-assigned-identifiers","description":"get a list of identifiers that are initialised by a JavaScript AST node.","version":"1.1.0","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/get-assigned-identifiers/issues"},"devDependencies":{"acorn":"^5.2.1","standard":"^10.0.3","tape":"^4.8.0"},"homepage":"https://github.com/goto-bus-stop/get-assigned-identifiers","keywords":["ast","bindings","destructuring","identifiers","javascript","names","node"],"license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/get-assigned-identifiers.git"},"scripts":{"test":"standard && tape test/*.js"},"gitHead":"2b080549af70a1dcc3c73bdf5efd0d3b587ee06e","_id":"get-assigned-identifiers@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"goto-bus-stop","email":"rene@kooi.me"},"dist":{"integrity":"sha512-CE1QU5G1R3ho3ldO/IgRe5f4BsFoBDwldQd9E7tx7zLpc0bzB3sOXg6xZ58y0gEPpgKmTVEmQX51RxTHNMdREw==","shasum":"21b21844005d246552efde1f28a2c4ea4f790ed3","tarball":"https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSgi9+yO7x2tMZ03jx2aJRMeK5uPDg1MG5LzZUutimVAIgHhn2+R+xK5bVEhmi5t8hO8I0TSqfbOZwLUkjvmhlPAg="}]},"maintainers":[{"name":"goto-bus-stop","email":"rene@kooi.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-assigned-identifiers-1.1.0.tgz_1512212977972_0.7527721505612135"},"directories":{}},"1.2.0":{"name":"get-assigned-identifiers","description":"get a list of identifiers that are initialised by a JavaScript AST node.","version":"1.2.0","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/get-assigned-identifiers/issues"},"devDependencies":{"acorn":"^5.4.1","standard":"^10.0.3","tape":"^4.8.0"},"homepage":"https://github.com/goto-bus-stop/get-assigned-identifiers","keywords":["ast","bindings","destructuring","identifiers","javascript","names","node"],"license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/get-assigned-identifiers.git"},"scripts":{"test":"standard && tape test/*.js"},"gitHead":"dd3f228ca9fd40541e98f2f4406069c82fe52f35","_id":"get-assigned-identifiers@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"goto-bus-stop","email":"rene@kooi.me"},"dist":{"integrity":"sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==","shasum":"6dbf411de648cbaf8d9169ebb0d2d576191e2ff1","tarball":"https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz","fileCount":7,"unpackedSize":7947,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnYFCQdBzsvOuPQQba91eHXHf2a8Da80JaN20VftPDRAIgOpc7tMAUK4DqdD8p4ns1CW3K1C9SZhhvEY+6r2zGyIQ="}]},"maintainers":[{"name":"goto-bus-stop","email":"rene@kooi.me"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-assigned-identifiers_1.2.0_1518092981809_0.6335986321048839"},"_hasShrinkwrap":false}},"readme":"# get-assigned-identifiers\n\nget a list of identifiers that are initialised by a JavaScript AST node.\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/get-assigned-identifiers.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/get-assigned-identifiers\n[travis-image]: https://img.shields.io/travis/goto-bus-stop/get-assigned-identifiers.svg?style=flat-square\n[travis-url]: https://travis-ci.org/goto-bus-stop/get-assigned-identifiers\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 get-assigned-identifiers\n```\n\n## Usage\n\n```js\nvar getAssignedIdentifiers = require('get-assigned-identifiers')\n\nvar ast = parse(`\n  var { a, b: [ c,, ...x ], d } = whatever()\n`)\nvar node = ast.body[0].declarations[0].id\ngetAssignedIdentifiers(node)\n// → [{ name: 'a' }, { name: 'c' }, { name: 'x' }, { name: 'd' }]\n```\n\n## API\n\n### `getAssignedIdentifiers(node)`\n\nReturn an array of AST Nodes referencing identifiers that are initialised by the `node`, taking into account destructuring.\n\nIf `node` is not an identifier or destructuring node, this returns an empty array.\n\n## License\n\n[Apache-2.0](LICENSE.md)\n","maintainers":[{"name":"goto-bus-stop","email":"rene@kooi.me"}],"time":{"modified":"2022-05-03T14:25:15.638Z","created":"2017-11-11T13:02:13.567Z","1.0.0":"2017-11-11T13:02:13.567Z","1.1.0":"2017-12-02T11:09:39.011Z","1.2.0":"2018-02-08T12:29:42.515Z"},"homepage":"https://github.com/goto-bus-stop/get-assigned-identifiers","keywords":["ast","bindings","destructuring","identifiers","javascript","names","node"],"repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/get-assigned-identifiers.git"},"author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/get-assigned-identifiers/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}