{"name":"babel-minify","version":"0.5.0-alpha.3cc09dcf","description":"✂️ An ES6+ aware minifier based on the Babel toolchain (beta)","keywords":["babel-minify","babel-preset","minify"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"amasad"},"main":"lib/index.js","bin":{"babel-minify":"./bin/minify.js","minify":"./bin/minify.js"},"repository":{"type":"git","url":"https://github.com/babel/minify/tree/master/packages/babel-minify"},"dependencies":{"@babel/core":"^7.0.0-beta.54","babel-preset-minify":"^0.5.0-alpha.3cc09dcf","fs-readdir-recursive":"^1.1.0","lodash.pick":"^4.4.0","mkdirp":"^0.5.1","util.promisify":"^1.0.0","yargs-parser":"^10.0.0"},"readmeFilename":"README.md","readme":"# babel-minify\n\nNode API and CLI\n\n[![npm](https://img.shields.io/npm/v/babel-minify.svg?maxAge=2592000)](https://www.npmjs.com/package/babel-minify)\n\nUse `babel-minify` if you don't already use babel (as a preset) or want to run it standalone.\n\n## Installation\n\n```sh\nnpm install babel-minify --save-dev\n```\n\n## Usage\n\n### Node API\n\n```js\nconst minify = require(\"babel-minify\");\n\nconst {code, map} = minify(\"input code\", {\n  mangle: {\n    keepClassName: true\n  }\n});\n```\n\n### CLI\n\n```sh\nminify input.js --out-file input.min.js --mangle.keepClassName\n```\n\n## Node API\n\n```js\nconst minify = require(\"babel-minify\");\n\nminify(input, minifyOptions, overrides)\n```\n\n### minifyOptions\n\nRefer [babel-preset-minify options](https://github.com/babel/minify/tree/master/packages/babel-preset-minify#options)\n\n### overrides\n\n+ `babel`: Custom babel\n+ `minifyPreset`: Custom minify preset\n+ `inputSourceMap`: Input Sourcemap\n+ `sourceMaps`: [Boolean]\n+ `comments`: [Function | RegExp | Boolean]\n\n## CLI Options\n\n```\nminify input.js [options]\n```\n\n### Simple preset options\n\nFor simple options, use `--optionName` in CLI\n\nRefer [preset's 1-1 options](https://github.com/babel/minify/tree/master/packages/babel-preset-minify#1-1-mapping-with-plugin) for the list of options\n\nExample:\n\n```\nminify input.js --mangle false\n```\n\n### Nested preset options\n\nUsage: `--optionName.featureName`\n\nExample:\n\n```sh\nminify input.js --mangle.keepClassName --deadcode.keepFnArgs --outFile input.min.js\n```\n\nRefer the corresponding plugins to know the list of options it takes\n\n### IO options\n\n+ `--out-file path/to/file.min.js`: Output filename. Used only when reading from STDIN / a single input file\n+ `--out-dir path/to/dir`: Output Directory.\n","_id":"babel-minify@0.5.0-alpha.3cc09dcf","dist":{"shasum":"8779dcc9f6ff190a299840e923ca1a77219742cf","tarball":"http://registry-npm.ywwl.com/babel-minify/download/babel-minify-0.5.0-alpha.3cc09dcf.tgz","fileCount":10,"unpackedSize":21709,"integrity":"sha512-qoPB83SO4Zm5GeViPWPyxoPopi5tGTySdAA2uPaOR9NOJWjL0wrkLVR+xIxVSGrcLu85zBi1uG/7qqJquK+5dA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEutn9KCYNobnIpOfPJCxZV9bYLLiBOxCXzm1mRIpve1AiBP1U3sQS2AgZK7mkhK5+JtYSe1Pta5yh0oBLp6uOMceQ=="}],"size":6735,"noattachment":false,"key":"/babel-minify/-/babel-minify-0.5.0-alpha.3cc09dcf.tgz"},"maintainers":[{"email":"asciiguyfieri@gmail.com","name":"babeljs"},{"email":"me@boopathi.in","name":"boopathi"},{"email":"hi@henryzoo.com","name":"hzoo"},{"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-minify_0.5.0-alpha.3cc09dcf_1532678714153_0.8035854693806352"},"_hasShrinkwrap":false,"publish_time":1532678714210,"_cnpm_publish_time":1532678714210,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.2"}}