{"bugs":{"url":"https://github.com/mmckegg/hoister/issues"},"dist":{"shasum":"0d0d8b1ce0f191553e61afec654f6b180eb96e5d","tarball":"https://registry.npmjs.org/hoister/-/hoister-0.0.2.tgz","integrity":"sha512-Qihd2RIGO06QaSPI4Z/ldA9GvD7lK6/wo+e0EMSzXI8BPEJMGANi2yQVa3ltPlcTTI8WCIV9XAFsU9pnK4sLmw==","signatures":[{"sig":"MEYCIQDQW1APqUmmM1Fab01vXOEzpoKzjfdnkrwBRWiOjkVDfQIhAORWVJVc0bQPvSDq7Y777mpPBufh95jpZZVo2z+cBldK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"hoister","_from":".","author":{"name":"Matt McKegg"},"readme":"hoister\n=======\n\nPut all function and variable declarations at the top of the scope in an AST \n\n[![NPM](https://nodei.co/npm/hoister.png?compact=true)](https://nodei.co/npm/hoister/)\n\n## Example\n\n```js\nvar parse = require('esprima').parse\nvar generate = require('escodegen').generate\nvar hoist = require('hoist')\n\nvar src = 'a = func(123); var a = \"test\"; function func(x){return x}'\nvar ast = parse(src)\nhoist(ast)\n\nconsole.log(generate(ast))\n```\n\nConsole result:\n\n```js\nfunction func(x) {\n  return x;\n}\nvar a;\na = func(123);\nvar a = 'test';\n```","gitHead":"d21084a8a5a5382128b88dd3c5ba960bee261d96","license":"MIT","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"mmckegg","email":"matt@wetsand.co.nz"},"keywords":["ast","hoist","esprima","javascript"],"repository":{"url":"https://github.com/mmckegg/hoister.git","type":"git"},"_npmVersion":"1.2.25","description":"Put all function and variable declarations at the top of the scope in an AST","directories":{"test":"test"},"maintainers":[{"name":"mmckegg","email":"matt@wetsand.co.nz"}],"readmeFilename":"README.md","devDependencies":{"tape":"~2.3","esprima":"~1.0"},"_id":"hoister@0.0.2","version":"0.0.2"}