{"name":"babel-helper-evaluate-path","version":"0.3.0-alpha.9a74dfd1","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"},"_id":"babel-helper-evaluate-path@0.3.0-alpha.9a74dfd1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"babeljs","email":"asciiguyfieri@gmail.com"},"dist":{"integrity":"sha512-EAf7f5oVEUe1EsXKjklWt5i65m/82xRUcpGpCLOVugs6eEz5jGl1Y4HvFBcLZtRHHMl4pRySO5T5at+pWyjJcg==","shasum":"7a2f17abb96866ebd82ce9c317ba3ca343f494d0","tarball":"http://registry-npm.ywwl.com/babel-helper-evaluate-path/download/babel-helper-evaluate-path-0.3.0-alpha.9a74dfd1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRPlwhGb2hYSPZN4ndig2McEGd0RzDTqEc2rvueVsYiAiEApbzZUlrDrMgk8fPOSxKu9d9IxCU/vC1qMufIfDsWCcY="}],"size":2740,"noattachment":false,"key":"/babel-helper-evaluate-path/-/babel-helper-evaluate-path-0.3.0-alpha.9a74dfd1.tgz"},"maintainers":[{"email":"kangax@gmail.com","name":"kangax"},{"email":"hi@henryzoo.com","name":"hzoo"},{"email":"amjad.masad@gmail.com","name":"amasad"},{"email":"me@boopathi.in","name":"boopathi"},{"email":"asciiguyfieri@gmail.com","name":"babeljs"},{"email":"loganfsmyth@gmail.com","name":"loganfsmyth"},{"email":"vignesh.shanmugam22@gmail.com","name":"vignesh.shanmugam"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-helper-evaluate-path-0.3.0-alpha.9a74dfd1.tgz_1512820113893_0.817953143035993"},"directories":{},"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 --save-dev\n```\n","publish_time":1512820114827,"_cnpm_publish_time":1512820114827,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.5.0"}}