{"id":46274547,"url":"https://github.com/metalsmith/htmlmin","last_synced_at":"2026-03-04T04:04:47.325Z","repository":{"id":340042145,"uuid":"1152825590","full_name":"metalsmith/htmlmin","owner":"metalsmith","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-22T22:46:51.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-23T03:44:25.302Z","etag":null,"topics":[],"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/metalsmith.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-08T13:53:06.000Z","updated_at":"2026-02-22T22:46:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/metalsmith/htmlmin","commit_stats":null,"previous_names":["metalsmith/htmlmin"],"tags_count":null,"template":false,"template_full_name":"metalsmith/core-plugin","purl":"pkg:github/metalsmith/htmlmin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fhtmlmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fhtmlmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fhtmlmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fhtmlmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metalsmith","download_url":"https://codeload.github.com/metalsmith/htmlmin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fhtmlmin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30071671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T03:25:38.285Z","status":"ssl_error","status_checked_at":"2026-03-04T03:25:05.086Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-03-04T04:04:42.244Z","updated_at":"2026-03-04T04:04:47.296Z","avatar_url":"https://github.com/metalsmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @metalsmith/htmlmin\n\nA metalsmith plugin to minify html using [htmlnano](https://github.com/maltsev/htmlnano)\n\n[![metalsmith: core plugin][metalsmith-badge]][metalsmith-url]\n[![npm: version][npm-badge]][npm-url]\n[![ci: build][ci-badge]][ci-url]\n[![code coverage][codecov-badge]][codecov-url]\n[![license: MIT][license-badge]][license-url]\n\n## Features\n\nAn optional features section (if there are many), or an extended description of the core plugin\n\n## Installation\n\nNPM:\n\n```\nnpm install @metalsmith/htmlmin\n```\n\nYarn:\n\n```\nyarn add @metalsmith/htmlmin\n```\n\n## Usage\n\nPass `@metalsmith/htmlmin` to `metalsmith.use` :\n\n```js\nimport htmlmin from '@metalsmith/htmlmin'\n\nmetalsmith.use(htmlmin()) // defaults\nmetalsmith.use(htmlmin({  // explicit defaults\n  ...\n}))\n```\n\n### Options\n\nOptional section with list or table of options, if the plugin has a lot of options\n\n### Specific usage example\n\nDocument a first specific usage example, the title can be \"Achieve x by doing y\"\n\n### Specific usage example\n\nDocument a second specific usage example, the title can be \"Achieve x by doing y\"\n\n### Debug\n\nTo enable debug logs, set the `DEBUG` environment variable to `@metalsmith/~core_plugin~*`:\n\n```js\nmetalsmith.env('DEBUG', '@metalsmith/~core_plugin~*')\n```\n\nAlternatively you can set `DEBUG` to `@metalsmith/*` to debug all Metalsmith core plugins.\n\n### CLI usage\n\nTo use this plugin with the Metalsmith CLI, add `@metalsmith/htmlmin` to the `plugins` key in your `metalsmith.json` file:\n\n```json\n{\n  \"plugins\": [\n    {\n      \"@metalsmith/htmlmin\": {}\n    }\n  ]\n}\n```\n\n## Credits (optional)\n\nSpecial thanks to ... for ...\n\n## License\n\n[MIT](LICENSE)\n\n[npm-badge]: https://img.shields.io/npm/v/@metalsmith/htmlmin.svg\n[npm-url]: https://www.npmjs.com/package/@metalsmith/htmlmin\n[ci-badge]: https://github.com/metalsmith/htmlmin/actions/workflows/test.yml/badge.svg\n[ci-url]: https://github.com/metalsmith/htmlmin/actions/workflows/test.yml\n[metalsmith-badge]: https://img.shields.io/badge/metalsmith-core_plugin-green.svg?longCache=true\n[metalsmith-url]: https://metalsmith.io\n[codecov-badge]: https://img.shields.io/coveralls/github/metalsmith/htmlmin\n[codecov-url]: https://coveralls.io/github/metalsmith/htmlmin\n[license-badge]: https://img.shields.io/github/license/metalsmith/htmlmin\n[license-url]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetalsmith%2Fhtmlmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetalsmith%2Fhtmlmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetalsmith%2Fhtmlmin/lists"}