{"name":"minify-stream","description":"minify javascript in a stream using uglify-js","version":"2.1.0","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bugs":{"url":"https://github.com/goto-bus-stop/minify-stream/issues"},"dependencies":{"concat-stream":"^2.0.0","convert-source-map":"^1.5.0","duplexify":"^4.1.1","from2-string":"^1.1.0","terser":"^4.7.0","xtend":"^4.0.1"},"devDependencies":{"dedent":"^0.7.0","pump":"^3.0.0","standard":"^14.3.1","tap-spec":"^5.0.0","tape":"^5.0.1"},"engines":{"node":">= 6"},"homepage":"https://github.com/goto-bus-stop/minify-stream","keywords":["minify","stream","uglify-js"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/minify-stream.git"},"scripts":{"test":"standard && tape test/*.js | tap-spec"},"gitHead":"004b02e7b557c7586397cdb0a19d20ffdc39226a","_id":"minify-stream@2.1.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-P5xE4EQRkn7Td54VGcgfDMFx1jmKPPIXCdcMfrbXS6cNHK4dO1LXwtYFb48hHrSmZfT+jlGImvHgSZEkbpNtCw==","shasum":"2df5cceee43260f57017cb90739fbf15ca7ade04","tarball":"http://registry-npm.ywwl.com/minify-stream/download/minify-stream-2.1.0.tgz","fileCount":7,"unpackedSize":8176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfP5BhCRA9TVsSAnZWagAAVNIP/A8/ToIsySdTfUYqbC+6\nSseaP5JuLozf+gIpk2hyTq0XL49zkekKBLXtzjJF9cGKz4VixnT2nNRHKpt6\nMgAPpApocbn9pjdB5gO55N+QjMPNq0vdyTimnl8SuN4gZv0mJvyEQ6BFSgop\nUp6CyLFTwKfNgEcWS9ENQZpuhmF2FKzqxrSf2Q2NhHfSqK1hkfMifBnGXVQ8\ntkybR7sAhxeEtA/BT/a3B1NCL62blwNNZsMHmZqXax9RSGwRtCz3liPRPaA6\nk2SjN1tOPQ8N/3NZf6SZS+e73/W6vzGwwohZE+A4Mltr0FAfBA7bHFMyBKjR\nwbHDDmuLRmS+txSNuX1pO/7sOnz9lZGXqmMjmjl9KfrkrC2F9eEDWNPbcpV/\nkLjLo/zLRr4SXpXXF/+WSEjjMQiztZ1NfnSSvdkqNqNLzoyd4dUbwSwzFbzG\ntf9qMxsNUsjnwDg8KoBEqjEyd+Kea7Tmyq8wPIUtH4riJFpwr1e4ix6PKlud\nrK+nFZXOfWPwJ85XtRgZHflaYo2DGVhgg1B6KN97HowGrk8z9ie1Xic1fuKF\nzj70yHywNA0HCUQhf1My+WO5lTtUdUq0MN0uADkSFoef8JMghC4h7uOyXTGj\njPIWpuFss8VDJg7goPf85vb2/IWWeN06oth1AHMwmlDT97dtsOkX70qAeQzT\nPiUC\r\n=9gpI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1yI2/as5pTaByejZtX7nq+moDX/+hKc70lqCqYElmpAiB85J/BfBIz/utBrQxKm9aLDVhYz8mYtpLiXnqjYCgQnw=="}],"size":3711,"noattachment":false,"key":"/minify-stream/-/minify-stream-2.1.0.tgz"},"maintainers":[{"email":"rene@kooi.me","name":"goto-bus-stop"},{"email":"todd@selfassembled.org","name":"toddself"}],"_npmUser":{"name":"goto-bus-stop","email":"renee@kooi.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minify-stream_2.1.0_1598001248953_0.8787160312574205"},"_hasShrinkwrap":false,"readme":"# minify-stream\n\nminify javascript in a stream using uglify-js\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n[![standard][standard-image]][standard-url]\n\n[npm-image]: https://img.shields.io/npm/v/minify-stream.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/minify-stream\n[travis-image]: https://img.shields.io/travis/goto-bus-stop/minify-stream.svg?style=flat-square\n[travis-url]: https://travis-ci.org/goto-bus-stop/minify-stream\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[standard-url]: http://npm.im/standard\n\n## Install\n\n```\nnpm install minify-stream\n```\n\n## Usage\n\n```js\nvar minifyStream = require('minify-stream')\n\nfs.createReadStream('app.js')\n  .pipe(minifyStream())\n  .pipe(fs.createWriteStream('app.min.js'))\n```\n\n## API\n\n### `minifyStream(?options)`\n\nCreate a new minify stream. Write a Javascript file or bundle to it.\nPossible `options` are:\n\n - `uglify` - An uglify module to use, defaults to [`terser`](https://npmjs.com/package/terser).\n   It must have an uglify-compatible `minify()` function.\n - All other options are passed to the `minify()` function as the second parameter.\n   See the [terser docs](https://github.com/fabiosantoscode/terser#minify-options) for available options.\n\n`minify-stream` adds inline source maps by default. Use [`exorcist`](https://npmjs.com/package/exorcist)\nto extract source maps from the output stream into a separate file. If you don't need source maps, pass\nthe `sourceMap: false` option to disable them.\n\n```js\nminifyStream({ sourceMap: false })\n```\n\n## License\n\n[MIT](LICENSE.md)\n","publish_time":1598001249092,"_cnpm_publish_time":1598001249092,"dist-tags":{"latest":"2.1.0"}}