{"id":21947710,"url":"https://github.com/valpackett/broccoli-brotli","last_synced_at":"2026-05-13T12:48:40.339Z","repository":{"id":45080722,"uuid":"80156653","full_name":"valpackett/broccoli-brotli","owner":"valpackett","description":"Broccoli extension to apply brotli compression","archived":false,"fork":false,"pushed_at":"2022-01-10T13:31:45.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T12:58:48.905Z","etag":null,"topics":["broccoli","broccoli-plugin","brotli","compression"],"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/valpackett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-26T21:19:52.000Z","updated_at":"2023-09-08T17:19:58.000Z","dependencies_parsed_at":"2022-09-02T12:42:05.053Z","dependency_job_id":null,"html_url":"https://github.com/valpackett/broccoli-brotli","commit_stats":null,"previous_names":["unrelentingtech/broccoli-brotli","myfreeweb/broccoli-brotli"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/valpackett/broccoli-brotli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valpackett%2Fbroccoli-brotli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valpackett%2Fbroccoli-brotli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valpackett%2Fbroccoli-brotli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valpackett%2Fbroccoli-brotli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valpackett","download_url":"https://codeload.github.com/valpackett/broccoli-brotli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valpackett%2Fbroccoli-brotli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32983700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T11:31:52.688Z","status":"ssl_error","status_checked_at":"2026-05-13T11:31:52.072Z","response_time":115,"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":["broccoli","broccoli-plugin","brotli","compression"],"created_at":"2024-11-29T05:09:21.924Z","updated_at":"2026-05-13T12:48:40.319Z","avatar_url":"https://github.com/valpackett.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://img.shields.io/npm/v/broccoli-brotli.svg)](https://www.npmjs.com/package/broccoli-brotli)\n[![npm downloads](https://img.shields.io/npm/dt/broccoli-brotli.svg)](https://www.npmjs.com/package/broccoli-brotli)\n[![MIT License](https://img.shields.io/badge/mit-license-green.svg?style=flat)](https://mit-license.org/)\n\n# Broccoli Brotli plugin\n\nFork of [broccoli-zopfli](https://github.com/nickbruun/broccoli-zopfli) (which is a fork of [broccoli-gzip](https://github.com/salsify/broccoli-gzip)) to use Brotli instead of Zopfli instead of gzip to perform compression. All credit goes to the original authors of broccoli-{zopfli,gzip}.\n\n\n## Installation\n\n```bash\n$ npm i broccoli-brotli\n```\n\n\n## Example\n\n```javascript\nconst Brotli = require('broccoli-brotli')\n\nconst tree = new Brotli('app', {\n  extensions: ['js', 'css', 'svg']\n})\n```\n\n\n## Configuration\n\n### `new Brotli(inputNode, options)`\n\n---\n\n`options.extensions` *{Array}* (required)\n\nThe file extensions that should be compressed.\n\n---\n\n`options.keepUncompressed` *{Boolean}* (optional, default `false`)\n\nWhether to keep uncompressed versions of the files in the resulting tree.\n\n---\n\n`options.appendSuffix` *{Boolean}* (optional, default `true`)\n\nWhether to append the `.br` extension suffix to compressed files.\n\n---\n\n`options.XXX`\n\nWhere `XXX` comes from [BrotliOptions](https://nodejs.org/dist/latest-v15.x/docs/api/zlib.html#zlib_class_brotlioptions).\n\n---\n\n## License\n\nbroccoli-brotli is, like broccoli-zopfli, distributed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalpackett%2Fbroccoli-brotli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalpackett%2Fbroccoli-brotli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalpackett%2Fbroccoli-brotli/lists"}