{"name":"acorn-globals","version":"4.3.3","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":"5833c929dddb267b4fc918ce1e2b9e7aba5fb3dd","bugs":{"url":"https://github.com/ForbesLindesay/acorn-globals/issues"},"homepage":"https://github.com/ForbesLindesay/acorn-globals#readme","_id":"acorn-globals@4.3.3","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-vkR40VwS2SYO98AIeFvzWWh+xyc2qi9s7OoXSFEGIP/rOJKzjnhykaZJNnHdoq4BL2gGxI5EZOU16z896EYnOQ==","shasum":"a86f75b69680b8780d30edd21eee4e0ea170c05e","tarball":"http://registry-npm.ywwl.com/acorn-globals/download/acorn-globals-4.3.3.tgz","fileCount":4,"unpackedSize":9105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdRNI6CRA9TVsSAnZWagAAcSMQAJPVWW13eo/3eqDXKAZL\nO5TVzRyIGrTCsCgNDdxzorDUMMZ1ylJ37gFiN43eFbKOuhWPEzoKMF6DKpok\nLEEsehXs/XwH+GDHd0iRydL4uLDyMoy2odxzWsL3C7h0Y6QbCPA8lUnmLQt7\nVfLuqhjSuNLs+9mbTesW/je1yTMi11yT0SJoXfgbyVBz4RaWBOMVFcvyhW1h\nBXSIGqmLbulJXnxas7/VAJiAMpd/KpmOFDkb3cZNOOqo2CRH4+qvR53e9sd8\nlVmQ7XfT9iOMpupezA7Jd2XuC0u39O5pqrL2+tCPYXWueZg+koSF6OeNFLU8\nBAcXS1rirzVU81xaHcwwRGaRMX7y/zgMH+L1SQL5dFBmeTyZsAJ2e34GuHOk\nRMk94Hbj9okgYlVqso4+oCuGnqBlr4ZcR9v4nCo9qOZ/o95UXebmmvf4iy4G\nFwv6UAHCzoKtlf3uYPIGjKkrOdzsKZwNnKvsnmjITDTJ3o4p/B5YokQy6cPq\nGxw6RCiUa+yGwxJmuLmwBXT+tF1unJAThMTDmy2wGk7CDlraRNWhhHAJJnBq\n1WwZU0pC+Aqwy2dlFmYgr8BpO63X3qTUZKlw5xCc8lgdTiAj39S+zKv6ScY8\n5ru5pgl4WqMYYOsez/W/wJ9OcCbskd4GmPCrLUWnDSeQAMcThg+WiCWbO1IX\n4k8w\r\n=TJ62\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDWRThQygUQk6LiMFhzZuDV0dhRXk8OlmcDVeS7hkGU5AiEAqYciK/jl+eyIOdazyG6C5vFrX6UqJaf5KVl067KlHdo="}],"size":3144,"noattachment":false,"key":"/acorn-globals/-/acorn-globals-4.3.3.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.3_1564791353406_0.40102051875783684"},"_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":1564791353511,"_cnpm_publish_time":1564791353511,"dist-tags":{"canary":"7.0.1-canary-4","latest":"7.0.1"}}