{"id":15395054,"url":"https://github.com/goto-bus-stop/html-minify-stream","last_synced_at":"2025-07-17T09:34:59.496Z","repository":{"id":25721704,"uuid":"106336634","full_name":"goto-bus-stop/html-minify-stream","owner":"goto-bus-stop","description":"minify html in a stream using html-minifier.","archived":false,"fork":false,"pushed_at":"2023-05-31T04:59:22.000Z","size":19,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"default","last_synced_at":"2025-06-10T07:53:43.739Z","etag":null,"topics":["html","html-minifier","minify","stream"],"latest_commit_sha":null,"homepage":null,"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-09T21:20:41.000Z","updated_at":"2021-05-01T11:05:55.000Z","dependencies_parsed_at":"2024-10-19T02:13:23.149Z","dependency_job_id":"e35b2e0a-fc5d-42f0-970d-dd02a72c72fe","html_url":"https://github.com/goto-bus-stop/html-minify-stream","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.4666666666666667,"last_synced_commit":"e2604cfe541cd4f166a8e07c3676e541c3363c61"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/goto-bus-stop/html-minify-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fhtml-minify-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fhtml-minify-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fhtml-minify-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fhtml-minify-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/html-minify-stream/tar.gz/refs/heads/default","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fhtml-minify-stream/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264668887,"owners_count":23646766,"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":["html","html-minifier","minify","stream"],"created_at":"2024-10-01T15:25:29.639Z","updated_at":"2025-07-17T09:34:59.463Z","avatar_url":"https://github.com/goto-bus-stop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html-minify-stream\n\nminify html in a stream using html-minifier.\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/html-minify-stream.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/html-minify-stream\n[travis-image]: https://img.shields.io/travis/goto-bus-stop/html-minify-stream.svg?style=flat-square\n[travis-url]: https://travis-ci.org/goto-bus-stop/html-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 html-minify-stream\n```\n\n## Usage\n\n```js\nvar htmlMinifyStream = require('html-minify-stream')\n\nfs.createReadStream('index.html')\n  .pipe(htmlMinifyStream({\n    collapseWhitespace: true,\n    removeOptionalTags: true\n  }))\n  .pipe(fs.createWriteStream('dist/index.html'))\n```\n\n## API\n\n### `htmlMinifyStream(?options)`\n\nCreate a new minify stream. Write an html document to it. `options` is an\noptions object for [html-minifier](https://github.com/kangax/html-minifier).\n\n## License\n\n[MIT](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-bus-stop%2Fhtml-minify-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoto-bus-stop%2Fhtml-minify-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-bus-stop%2Fhtml-minify-stream/lists"}