{"name":"babel-minify","version":"0.5.0-alpha.01eac1c3","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.46","babel-preset-minify":"^0.5.0-alpha.01eac1c3","fs-readdir-recursive":"^1.1.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.01eac1c3","dist":{"shasum":"02d2e69a08bc2e04d107d55bba515804ce652f1a","tarball":"http://registry-npm.ywwl.com/babel-minify/download/babel-minify-0.5.0-alpha.01eac1c3.tgz","fileCount":10,"unpackedSize":20336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/hKyCRA9TVsSAnZWagAAxr4P/1iCEV2piFi0shAK98PL\nYb9H9LbdPlLowhkKPi586+/Hq3elBHZlu6omJ373oproN1bb5FJ2NR2HZ8JX\nrUf19dlU4waiT1wZFpTGzrahvVXWqrZOyUh2f2E8WO2hgwYjwjGLm0pmPCck\nkNEEySufWJGeObFj5uO/L5bPcXHbU4DSghVbYbqvkWlbBh74Q+u1t1jTP4Sa\nk4TZ7jEx4d7uq0NGmimH7+wbvsN/Q7IkeQQXXLLqTeRyMO/7bSOo3zQFsbRA\nf4qmCAuWEaFB8j/3Fa9bBxz7YXakRLda3ExMkKTQs+j/5XX8fsAaHsH5w4Kt\neC15eMDtXK4wWAWU+kpWrwvW/4Y3PMBplJC6YKQQIFjw7fAZzMKQIMV/tKGU\niXrNIi25rME8uiaWsqdy4LTlPSMiFWoZ5zMIlxcqJiSvmxLy7loPt7A5apMe\nEw9wvlO8FuiLI9gU0tZIdFcoe2/tcweCy7yTglWvo83r3ABjJ/sZOhG4ZIWn\nm9qyR+igh22YclNxYT/hIxJhfuV+eGLGm2yHLNlWBkWMS6haSVT7YEs4gFJ5\n3WWTgnkqZCmYW2ktBQ2Yt/NceNIcQxB0k3zgrGopYrtmwT4PlBIYOlSzej5A\nRSkZiyx04FabKt9PeQwlrIW4FQnTxVpoq8pb76XW2AEv2T7HjDi2WXMK6ClG\nqAEU\r\n=CuZz\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-yWhoqXMs1PUzZ+LJXcTvNqSKlnobSSO1mpfd8D3Lr7U8SkUdJOg3XLx8d4GA4s5oIIZRjoeqwcnAJk6cBP79FA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyWzYByxIBEiwC4dtQGw04BaThAsmvg+XDZwkkOXcLfAiB97MMkZjE3NGMMACAxzCE3NhS3WeaUl39Ogvt96BGB2w=="}],"size":6456,"noattachment":false,"key":"/babel-minify/-/babel-minify-0.5.0-alpha.01eac1c3.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.01eac1c3_1526600369942_0.8100250404866942"},"_hasShrinkwrap":false,"publish_time":1526600369993,"_cnpm_publish_time":1526600369993,"dist-tags":{"canary":"0.6.0-alpha.9","latest":"0.5.2"}}