{"name":"acorn-globals","version":"4.3.2","description":"Detect global variables in JavaScript using acorn","keywords":["ast","variable","name","lexical","scope","local","global","implicit"],"dependencies":{"acorn":"^6.0.1","acorn-walk":"^6.0.1"},"devDependencies":{"testit":"^3.0.0"},"scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/acorn-globals.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"b6521b3ea3ea6adfde5c58a3ce03403e5fee43a4","bugs":{"url":"https://github.com/ForbesLindesay/acorn-globals/issues"},"homepage":"https://github.com/ForbesLindesay/acorn-globals#readme","_id":"acorn-globals@4.3.2","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-BbzvZhVtZP+Bs1J1HcwrQe8ycfO0wStkSGxuul3He3GkHOIZ6eTqOkPuw9IP1X3+IkOo4wiJmwkobzXYz4wewQ==","shasum":"4e2c2313a597fd589720395f6354b41cd5ec8006","tarball":"http://registry-npm.ywwl.com/acorn-globals/download/acorn-globals-4.3.2.tgz","fileCount":4,"unpackedSize":8770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvMjyCRA9TVsSAnZWagAAQ/gQAI0Wx/un7RZjqJ32ovPB\nSu9mfKUcMf7Br8rxZXE8ux4Eoo0Atu0WKYxjq1EUEYFVXS4MIeKOzNr7hIbW\noE6uFsvz635P12pJTAvIbBweJdQp2Q93ag3ysg0YOT5tNPwffSnZToGqFFJI\n94BsF04Gv5vDIMAlOUeNzlNHsZ1+fImIGu9xeMr4N6sE8c1NpCIpU0acXP9i\ngdISAfmt/BYYJBxAHtwwjrMj6GucAhu1LEycUAQsOcfVGTjfGmAXGKtydyF0\njXEC5IEcfv1JRCKJGtu177zHdNOTMKLKeCQvAVG+AkB8IWnFdSMWa5b6W00J\nrsPgMGOgtx5pzUlSjlYW+2ecJVMW2SIXzSIDetnVSE3NDGv9nECFNGuIfQpP\nlm+3AG0AB5FcIsoQABNzn9BO/Gq9AFFWAgWe0q7N/iYMbQc3nPztBdDlOzbG\nZhTe+qaUHsEIpLUyD3HlFaHj72XiFNLVVR4lwzGvsjUKPAdhykw3gxNbI4HN\n3sh/Kd6NSZyMPlPa+GWIzSAeKvUM51L2J8/kdl3dh8tH0XLcl9rw4fSPOFSJ\npSH+A8q/e3+GKo6HWuFnqy7i1maQzpyVsi01MlQHgPcSJteakc8rE5TvkNIp\n/scB0/guFby66BqBShS/x6gjb14dvE6QzcvxGeQwPEmNBoRL/qBsQfg1slhK\nuht7\r\n=GvQQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHh4tMFORUnZknzhxrqfoa4mUqlWhQHgFKo/0O5lrQdZAiAw3q2Rkd9THR3vEejqcgNKGu3vza/9b/7O2ho4wWOtIQ=="}],"size":3097,"noattachment":false,"key":"/acorn-globals/-/acorn-globals-4.3.2.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/acorn-globals_4.3.2_1555876081863_0.3827506610070919"},"_hasShrinkwrap":false,"readme":"# acorn-globals\n\nDetect global variables in JavaScript using acorn\n\n[Get supported acorn-globals with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-acorn_globals?utm_source=npm-acorn-globals&utm_medium=referral&utm_campaign=readme)\n\n[![Build Status](https://img.shields.io/github/workflow/status/ForbesLindesay/acorn-globals/Publish%20Canary/master?style=for-the-badge)](https://github.com/ForbesLindesay/acorn-globals/actions?query=workflow%3APublish%20Canary+branch%3Amaster)\n[![Rolling Versions](https://img.shields.io/badge/Rolling%20Versions-Enabled-brightgreen?style=for-the-badge)](https://rollingversions.com/ForbesLindesay/acorn-globals)\n[![NPM version](https://img.shields.io/npm/v/acorn-globals?style=for-the-badge)](https://www.npmjs.com/package/acorn-globals)\n\n## Installation\n\n    npm install acorn-globals\n\n## Usage\n\ndetect.js\n\n```js\nvar fs = require('fs');\nvar detect = require('acorn-globals');\n\nvar src = fs.readFileSync(__dirname + '/input.js', 'utf8');\n\nvar scope = detect(src);\nconsole.dir(scope);\n```\n\ninput.js\n\n```js\nvar x = 5;\nvar y = 3, z = 2;\n\nw.foo();\nw = 2;\n\nRAWR=444;\nRAWR.foo();\n\nBLARG=3;\n\nfoo(function () {\n    var BAR = 3;\n    process.nextTick(function (ZZZZZZZZZZZZ) {\n        console.log('beep boop');\n        var xyz = 4;\n        x += 10;\n        x.zzzzzz;\n        ZZZ=6;\n    });\n    function doom () {\n    }\n    ZZZ.foo();\n\n});\n\nconsole.log(xyz);\n```\n\noutput:\n\n```\n$ node example/detect.js\n[ { name: 'BLARG', nodes: [ [Object] ] },\n  { name: 'RAWR', nodes: [ [Object], [Object] ] },\n  { name: 'ZZZ', nodes: [ [Object], [Object] ] },\n  { name: 'console', nodes: [ [Object], [Object] ] },\n  { name: 'foo', nodes: [ [Object] ] },\n  { name: 'process', nodes: [ [Object] ] },\n  { name: 'w', nodes: [ [Object], [Object] ] },\n  { name: 'xyz', nodes: [ [Object] ] } ]\n```\n\n## Security contact information\n\nTo report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.\n\n## License\n\n  MIT\n","publish_time":1555876082063,"_cnpm_publish_time":1555876082063,"dist-tags":{"canary":"7.0.1-canary-4","latest":"7.0.1"}}