{"name":"babel-helper-evaluate-path","version":"0.5.0-alpha.72092d20","description":"path.evaluate wrapped in a try catch","keywords":["babel-minify","babel-plugin"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"boopathi"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/babel/minify/tree/master/packages/babel-helper-evaluate-path"},"readmeFilename":"README.md","readme":"# babel-helper-evaluate-path\n\nA wrapper for babel's `path.evaluate`\n\nFixes / Features:\n\n+ Detect usages before initialization / declaration\n\n```js\nfunction foo() {\n  console.log(b); // ReferenceError\n  let b = 1;\n}\n\nfunction bar() {\n  console.log(a); // a is void 0\n  var a = 5;\n  console.log(a); // 5\n}\n```\n\n+ Detect usages in scopes outside of initialization for vars (hoisted)\n\n```js\nfunction foo() {\n  if (a) var x = 5;\n  console.log(x); // cannot determine\n}\n```\n\n## Installation\n\n```sh\nnpm install babel-helper-evaluate-path\n```\n","_id":"babel-helper-evaluate-path@0.5.0-alpha.72092d20","dist":{"shasum":"467a65094ab5c54abb2b43818d74e27bedabe891","tarball":"http://registry-npm.ywwl.com/babel-helper-evaluate-path/download/babel-helper-evaluate-path-0.5.0-alpha.72092d20.tgz","fileCount":5,"unpackedSize":8704,"integrity":"sha512-V9MNNfdwYRRAHc7kQzGPDSHE6pOkfwmlrQhSmBXIJWhhoTX52/lWGRWznNwgvL7dMo7kmrtxRabxPUFb0rXDOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCO02oGHftTUJukPYDgcIz01Rxdu07q+aziIrRbkiNkOAIgdnqA0NQ677EQYqcjMNZUm7XNhKZP+PehLlhIAAocBbM="}],"size":2803,"noattachment":false,"key":"/babel-helper-evaluate-path/-/babel-helper-evaluate-path-0.5.0-alpha.72092d20.tgz"},"maintainers":[{"email":"amjad.masad@gmail.com","name":"amasad"},{"email":"asciiguyfieri@gmail.com","name":"babeljs"},{"email":"me@boopathi.in","name":"boopathi"},{"email":"hi@henryzoo.com","name":"hzoo"},{"email":"kangax@gmail.com","name":"kangax"},{"email":"loganfsmyth@gmail.com","name":"loganfsmyth"},{"email":"vignesh.shanmugam22@gmail.com","name":"vignesh.shanmugam"}],"_npmUser":{"name":"babeljs","email":"asciiguyfieri@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-helper-evaluate-path_0.5.0-alpha.72092d20_1523176616438_0.1617287367567115"},"_hasShrinkwrap":false,"publish_time":1523176616595,"_cnpm_publish_time":1523176616595,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.5.0"}}