{"bugs":{"url":"https://github.com/mmckegg/hoister/issues"},"dist":{"shasum":"658df7cd31d8ba22e5ec743e2f29903fb454acff","tarball":"https://registry.npmjs.org/hoister/-/hoister-0.0.1.tgz","integrity":"sha512-RoaJc+jCl2XZi/mgGhcj7Oa0lGMb1gkLwCnOu+X11kRG5uo3aEHidbQNyT3SICswSpBwYVUYQAMerv6G7nVLsA==","signatures":[{"sig":"MEQCIGmIldt0mD0GP//IiGNAPBtp+vVihPwerh5oa5K59QsoAiBPtZ19+niWlw5xHHBHlPTR9Uwhen1XW2iIw1s8uplz+g==","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.1","version":"0.0.1"}