{"id":15394990,"url":"https://github.com/goto-bus-stop/minify-stream","last_synced_at":"2025-04-15T11:52:46.312Z","repository":{"id":52414414,"uuid":"105000786","full_name":"goto-bus-stop/minify-stream","owner":"goto-bus-stop","description":"minify javascript in a stream using uglify-js (ES5) or terser (ES6+)","archived":false,"fork":false,"pushed_at":"2021-04-29T21:12:06.000Z","size":32,"stargazers_count":27,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"default","last_synced_at":"2025-03-28T19:45:01.520Z","etag":null,"topics":["javascript","minify","stream","terser","uglify"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goto-bus-stop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-27T09:43:13.000Z","updated_at":"2024-07-27T08:34:31.000Z","dependencies_parsed_at":"2022-09-01T08:41:41.454Z","dependency_job_id":null,"html_url":"https://github.com/goto-bus-stop/minify-stream","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fminify-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fminify-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fminify-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fminify-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goto-bus-stop","download_url":"https://codeload.github.com/goto-bus-stop/minify-stream/tar.gz/refs/heads/default","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249067756,"owners_count":21207395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","minify","stream","terser","uglify"],"created_at":"2024-10-01T15:25:14.746Z","updated_at":"2025-04-15T11:52:46.268Z","avatar_url":"https://github.com/goto-bus-stop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-bus-stop%2Fminify-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoto-bus-stop%2Fminify-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-bus-stop%2Fminify-stream/lists"}