{"_id":"undeclared-identifiers","_rev":"85250","name":"undeclared-identifiers","description":"find undeclared identifiers and property accesses in a javascript file.","dist-tags":{"latest":"1.1.3"},"maintainers":[{"name":"goto-bus-stop","email":""}],"time":{"modified":"2021-06-03T10:27:36.000Z","created":"2018-03-10T10:23:01.845Z","1.1.3":"2019-02-24T09:36:25.003Z","1.1.2":"2018-05-18T09:30:55.053Z","1.1.1":"2018-05-18T09:23:03.131Z","1.1.0":"2018-05-18T08:41:49.556Z","1.0.0":"2018-03-10T10:23:01.845Z"},"users":{},"author":{"name":"Renée Kooi","email":"renee@kooi.me"},"repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/undeclared-identifiers.git"},"versions":{"1.1.3":{"name":"undeclared-identifiers","description":"find undeclared identifiers and property accesses in a javascript file.","version":"1.1.3","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/undeclared-identifiers/issues"},"devDependencies":{"jquery":"^3.3.1","lodash":"^4.17.5","nanobench":"^2.1.0","standard":"^11.0.0","tap-spec":"^5.0.0","tape":"^4.0.0","three":"^0.92.0"},"homepage":"https://github.com/goto-bus-stop/undeclared-identifiers","keywords":["ast","check","detect","identifiers","javascript","undeclared"],"license":"Apache-2.0","main":"index.js","bin":{"undeclared-identifiers":"bin.js"},"repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/undeclared-identifiers.git"},"scripts":{"test":"standard && tape test/*.js | tap-spec"},"dependencies":{"acorn-node":"^1.3.0","dash-ast":"^1.0.0","get-assigned-identifiers":"^1.2.0","simple-concat":"^1.0.0","xtend":"^4.0.1"},"gitHead":"d043680d435bf046926a96d35ed7cd55abb96960","_id":"undeclared-identifiers@1.1.3","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"shasum":"9254c1d37bdac0ac2b52de4b6722792d2a91e30f","size":4721,"noattachment":false,"key":"/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/undeclared-identifiers/download/undeclared-identifiers-1.1.3.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/undeclared-identifiers_1.1.3_1551000984683_0.6734019044572137"},"_hasShrinkwrap":false,"publish_time":1551000985003,"_cnpm_publish_time":1551000985003},"1.1.2":{"name":"undeclared-identifiers","description":"find undeclared identifiers and property accesses in a javascript file.","version":"1.1.2","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/undeclared-identifiers/issues"},"devDependencies":{"jquery":"^3.3.1","lodash":"^4.17.5","nanobench":"^2.1.0","standard":"^11.0.0","tap-spec":"^4.0.2","tape":"^4.0.0"},"homepage":"https://github.com/goto-bus-stop/undeclared-identifiers","keywords":["ast","check","detect","identifiers","javascript","undeclared"],"license":"Apache-2.0","main":"index.js","bin":{"undeclared-identifiers":"bin.js"},"repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/undeclared-identifiers.git"},"scripts":{"test":"standard && tape test/*.js | tap-spec"},"dependencies":{"acorn-node":"^1.3.0","get-assigned-identifiers":"^1.2.0","simple-concat":"^1.0.0","xtend":"^4.0.1"},"gitHead":"0c6a56f5eb7ddc3d6a77536773a76d88200ef588","_id":"undeclared-identifiers@1.1.2","_npmVersion":"6.0.1","_nodeVersion":"10.1.0","_npmUser":{"name":"goto-bus-stop","email":"rene@kooi.me"},"dist":{"shasum":"7d850a98887cff4bd0bf64999c014d08ed6d1acc","size":4392,"noattachment":false,"key":"/undeclared-identifiers/-/undeclared-identifiers-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/undeclared-identifiers/download/undeclared-identifiers-1.1.2.tgz"},"maintainers":[{"name":"goto-bus-stop","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/undeclared-identifiers_1.1.2_1526635854963_0.0511197651385662"},"_hasShrinkwrap":false,"publish_time":1526635855053,"_cnpm_publish_time":1526635855053},"1.1.1":{"name":"undeclared-identifiers","description":"find undeclared identifiers and property accesses in a javascript file.","version":"1.1.1","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/undeclared-identifiers/issues"},"devDependencies":{"jquery":"^3.3.1","lodash":"^4.17.5","nanobench":"^2.1.0","standard":"^11.0.0","tap-spec":"^4.0.2","tape":"^4.0.0"},"homepage":"https://github.com/goto-bus-stop/undeclared-identifiers","keywords":["ast","check","detect","identifiers","javascript","undeclared"],"license":"Apache-2.0","main":"index.js","bin":{"undeclared-identifiers":"bin.js"},"repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/undeclared-identifiers.git"},"scripts":{"test":"standard && tape test/*.js | tap-spec"},"dependencies":{"acorn-node":"^1.3.0","get-assigned-identifiers":"^1.2.0","simple-concat":"^1.0.0","xtend":"^4.0.1"},"gitHead":"e7131f8ae535007d485ebdef842deadc5d0e57f3","_id":"undeclared-identifiers@1.1.1","_npmVersion":"6.0.1","_nodeVersion":"10.1.0","_npmUser":{"name":"goto-bus-stop","email":"rene@kooi.me"},"dist":{"shasum":"0b21a7be695d799f95d9cf32ca07e4a8ab9b161b","size":4294,"noattachment":false,"key":"/undeclared-identifiers/-/undeclared-identifiers-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/undeclared-identifiers/download/undeclared-identifiers-1.1.1.tgz"},"maintainers":[{"name":"goto-bus-stop","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/undeclared-identifiers_1.1.1_1526635382805_0.5925000997926388"},"_hasShrinkwrap":false,"publish_time":1526635383131,"_cnpm_publish_time":1526635383131},"1.1.0":{"name":"undeclared-identifiers","description":"find undeclared identifiers and property accesses in a javascript file.","version":"1.1.0","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/undeclared-identifiers/issues"},"devDependencies":{"jquery":"^3.3.1","lodash":"^4.17.5","nanobench":"^2.1.0","standard":"^11.0.0","tap-spec":"^4.0.2","tape":"^4.0.0"},"homepage":"https://github.com/goto-bus-stop/undeclared-identifiers","keywords":["ast","check","detect","identifiers","javascript","undeclared"],"license":"Apache-2.0","main":"index.js","bin":{"undeclared-identifiers":"bin.js"},"repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/undeclared-identifiers.git"},"scripts":{"test":"standard && tape test/*.js | tap-spec"},"dependencies":{"acorn-node":"^1.3.0","get-assigned-identifiers":"^1.2.0","simple-concat":"^1.0.0","xtend":"^4.0.1"},"gitHead":"3fda52eec35f36660f25e5f30a5c51fa8ea87e5d","_id":"undeclared-identifiers@1.1.0","_npmVersion":"6.0.1","_nodeVersion":"10.1.0","_npmUser":{"name":"goto-bus-stop","email":"rene@kooi.me"},"dist":{"shasum":"56fc7b6d7a599f1f3b003d41694bdd520487981f","size":4213,"noattachment":false,"key":"/undeclared-identifiers/-/undeclared-identifiers-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/undeclared-identifiers/download/undeclared-identifiers-1.1.0.tgz"},"maintainers":[{"name":"goto-bus-stop","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/undeclared-identifiers_1.1.0_1526632909506_0.3873184047373581"},"_hasShrinkwrap":false,"publish_time":1526632909556,"_cnpm_publish_time":1526632909556},"1.0.0":{"name":"undeclared-identifiers","description":"find undeclared identifiers and property accesses in a javascript file.","version":"1.0.0","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/undeclared-identifiers/issues"},"devDependencies":{"jquery":"^3.3.1","lodash":"^4.17.5","nanobench":"^2.1.0","standard":"*","tap-spec":"^4.0.2","tape":"^4.0.0"},"homepage":"https://github.com/goto-bus-stop/undeclared-identifiers","keywords":["ast","check","detect","identifiers","javascript","undeclared"],"license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/undeclared-identifiers.git"},"scripts":{"test":"standard && tape test/*.js | tap-spec"},"dependencies":{"acorn-node":"^1.3.0","get-assigned-identifiers":"^1.2.0","xtend":"^4.0.1"},"gitHead":"d7d80d40e59107fd217bc064497addd1faaa6e00","_id":"undeclared-identifiers@1.0.0","_npmVersion":"5.7.1","_nodeVersion":"9.8.0","_npmUser":{"name":"goto-bus-stop","email":"rene@kooi.me"},"dist":{"shasum":"b97fde11f042a09a286b4681e940655ccd21a8d1","size":3456,"noattachment":false,"key":"/undeclared-identifiers/-/undeclared-identifiers-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/undeclared-identifiers/download/undeclared-identifiers-1.0.0.tgz"},"maintainers":[{"name":"goto-bus-stop","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/undeclared-identifiers_1.0.0_1520677381767_0.08568800829317413"},"_hasShrinkwrap":false,"publish_time":1520677381845,"_cnpm_publish_time":1520677381845}},"readme":"# undeclared-identifiers\n\nfind undeclared identifiers and property accesses in a javascript file.\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/undeclared-identifiers.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/undeclared-identifiers\n[travis-image]: https://img.shields.io/travis/goto-bus-stop/undeclared-identifiers.svg?style=flat-square\n[travis-url]: https://travis-ci.org/goto-bus-stop/undeclared-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 undeclared-identifiers\n```\n\n## Usage\n\n```js\nvar undeclaredIdentifiers = require('undeclared-identifiers')\n\nundeclaredIdentifiers(src)\n// { identifiers: ['Buffer'],\n//   properties: ['Buffer.isBuffer'] }\n```\n\n## API\n\n### `res = undeclaredIdentifiers(source, opts)`\n\nFind undeclared identifiers and properties that are used in the `source`. `source` can be an AST or a source string that will be parsed using [acorn-node](https://github.com/browserify/acorn-node).\n\n`res` is an object with properties:\n\n  - `res.identifiers` - an array of variable names as strings.\n  - `res.properties` - an array of property names as .-separated strings, such as `'xyz.abc'`. These are the property accesses on the undeclared variables found in `res.identifiers`.\n\nSet `opts.properties` to false to only return identifiers.\n\nWhen `opts.wildcard` is true, unknown uses of undeclared identifiers will be added to `res.properties` as `'VarName.*'`.\n\n```js\nundeclaredIdentifiers('Buffer(), Buffer.from()', { wildcard: true })\n// { identifiers: ['Buffer'],\n//   properties: ['Buffer.*', 'Buffer.from'] }\n```\n\n## License\n\n[Apache-2.0](LICENSE.md)\n","_attachments":{},"homepage":"https://github.com/goto-bus-stop/undeclared-identifiers","bugs":{"url":"https://github.com/goto-bus-stop/undeclared-identifiers/issues"},"license":"Apache-2.0"}