{"name":"free-variables","version":"0.1.0","description":"get a list of variables used in a JS program","keywords":["free variable"],"dependencies":{"unique":"git://github.com/jkroso/unique","ast-children":"^0.1.1"},"devDependencies":{"assert":"git://github.com/component/assert","serve":"git://github.com/jkroso/serve","hydro-html":"*","hydro-chai":"*","hydro-bdd":"*","hydro-dot":"*","esprima":"*","hydro":"*","jsmd":"*"},"repository":{"type":"git","url":"git://github.com/jkroso/free-variables.git"},"bugs":{"url":"https://github.com/jkroso/free-variables/issues"},"author":{"name":"Jake Rosoman"},"files":["index.js"],"license":"MIT","homepage":"https://github.com/jkroso/free-variables","_id":"free-variables@0.1.0","_shasum":"cb0c636e2a73344e434189461f4658807b3dcec4","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"jkroso","email":"jkroso@gmail.com"},"maintainers":[{"name":"jkroso","email":"jkroso@gmail.com"}],"dist":{"shasum":"cb0c636e2a73344e434189461f4658807b3dcec4","tarball":"http://registry-npm.ywwl.com/free-variables/download/free-variables-0.1.0.tgz","integrity":"sha512-t48tNVDMMNvy5AHnqwFm+eggtxrL0R/sjn1MLBSVo1XTJgF6XytKdEztuhWBN5gBandwjUiHdrTb22ZFQMBOmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2LdbILmz/L84+iYsiFZ+LxoYPj6VTMFSdIyQNr8OcGAiBQ1K0UqHXU0uwQqWeAgyc4QVS8erbSfsL44rsoEPvfCw=="}],"size":1264,"noattachment":false,"key":"/free-variables/-/free-variables-0.1.0.tgz"},"directories":{},"readme":"\n# free-variables\n\n  Get a list of free variables used in a JS program. A free variable is one which is used but not declared.\n\n## Installation\n\nWith your favorite package manager:\n\n- [packin](//github.com/jkroso/packin): `packin add free-variables`\n- [component](//github.com/component/component#installing-packages): `component install jkroso/free-variables`\n- [npm](//npmjs.org/doc/cli/npm-install.html): `npm install free-variables`\n\nthen in your app:\n\n```js\nvar free = require('free-variables')\n```\n\n## API\n\n### free(ast)\n\nTakes any [standard](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API) JS AST and returns and `Array` of `String`'s\n\n```js\nvar parse = require('esprima').parse\nfree(parse('console.log')) // => ['console']\nfree(parse('console[log]')) // => ['console', 'log']\nfree(parse('function b(){a}')) // => ['a']\nfree(parse('var a = 1; a + b')) // => ['b']\nfree(parse('a; var a')) // => []\n```\n","publish_time":1400286424956,"_cnpm_publish_time":1400286424956,"dist-tags":{"latest":"0.1.1"}}