{"name":"babel-plugin-transform-remove-undefined","version":"0.4.0-alpha.6546ad11","description":"This removes rvals that are equivalent to undefined wherever possible","keywords":["babel-plugin"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"shinew"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/babel/minify/tree/master/packages/babel-plugin-transform-remove-undefined"},"dependencies":{"babel-helper-evaluate-path":"^0.4.0-alpha.6546ad11"},"readme":"# babel-plugin-transform-remove-undefined\n\nFor variable assignments, this removes rvals that evaluate to `undefined`\n(`var`s in functions only).\nFor functions, this removes return arguments that evaluate to `undefined`.\n\n## Example\n\n**In**\n\n```javascript\nlet a = void 0;\nfunction foo() {\n  var b = undefined;\n  return undefined;\n}\n```\n\n**Out**\n\n```javascript\nlet a;\nfunction foo() {\n  var b;\n  return;\n}\n```\n\n## Installation\n\n```sh\nnpm install babel-plugin-transform-remove-undefined\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"babel-plugin-transform-remove-undefined\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins babel-plugin-transform-remove-undefined script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"babel-plugin-transform-remove-undefined\"]\n});\n```\n\n## Options\n\n+ `tdz` - Detect usages before declaration/initialization in let/const(throws) and var(void 0)\n","readmeFilename":"README.md","_id":"babel-plugin-transform-remove-undefined@0.4.0-alpha.6546ad11","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"babeljs","email":"asciiguyfieri@gmail.com"},"dist":{"integrity":"sha512-VCZ5B6HDv3G5znmU+/jt84MyDljlNRJeWEJuYo8IjS4s4dMGJAZPMvWfJNTIWCYZiKc3xa3vQXnZP3gwl+doRg==","shasum":"dafd429643da8154cbe335b5728e1d150c63ade3","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-remove-undefined/download/babel-plugin-transform-remove-undefined-0.4.0-alpha.6546ad11.tgz","fileCount":3,"unpackedSize":8854,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGiWp7xAj9MZ11n6NY+sU3yZmYlnCPap3D0RtV0Fqn7wIgKIIQf502JVpJs/pN1PDYtpkjaPy0zUYLE5Kihnj36sk="}],"size":2551,"noattachment":false,"key":"/babel-plugin-transform-remove-undefined/-/babel-plugin-transform-remove-undefined-0.4.0-alpha.6546ad11.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"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-remove-undefined_0.4.0-alpha.6546ad11_1518729233314_0.21954190074392388"},"_hasShrinkwrap":false,"publish_time":1518729233385,"_cnpm_publish_time":1518729233385,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.5.0","prerelease":"0.0.3"}}