{"id":16266353,"url":"https://github.com/daliborgogic/nuxt-brotli","last_synced_at":"2025-03-19T22:30:35.078Z","repository":{"id":32993754,"uuid":"148847253","full_name":"daliborgogic/nuxt-brotli","owner":"daliborgogic","description":"Nuxt.js module which compresses assets with Brotli compression algorithm using `iltorb` library for serving it with `ngx_brotli`","archived":false,"fork":false,"pushed_at":"2022-04-28T16:40:52.000Z","size":197,"stargazers_count":19,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T11:21:32.579Z","etag":null,"topics":["brotli","module","nuxt","plugin","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nuxt-brotli","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daliborgogic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-14T22:20:03.000Z","updated_at":"2024-04-01T19:03:11.000Z","dependencies_parsed_at":"2022-08-07T19:16:46.699Z","dependency_job_id":null,"html_url":"https://github.com/daliborgogic/nuxt-brotli","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daliborgogic%2Fnuxt-brotli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daliborgogic%2Fnuxt-brotli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daliborgogic%2Fnuxt-brotli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daliborgogic%2Fnuxt-brotli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daliborgogic","download_url":"https://codeload.github.com/daliborgogic/nuxt-brotli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244515595,"owners_count":20464916,"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":["brotli","module","nuxt","plugin","webpack"],"created_at":"2024-10-10T17:40:44.161Z","updated_at":"2025-03-19T22:30:34.831Z","avatar_url":"https://github.com/daliborgogic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nuxt-brotli\n\n\u003e This [Nuxt.js](https://github.com/nuxt) module compresses assets with Brotli compression algorithm using [iltorb](https://github.com/MayhemYDG/iltorb) library for serving it with [ngx_brotli](https://github.com/google/ngx_brotli).\n\n## Installation\n\n```bash\n$ npm i nuxt-brotli\n```\n\n## Usage\n\nAdd ```nuxt-brotli``` to modules section of ```nuxt.config.js```\n\n```javascript\n{\n  modules: ['nuxt-brotli']\n}\n```\n\nArguments:\n\n* `asset`: The target asset name. Defaults to `'[path].br[query]'`.\n  * `[file]` is replaced with the original asset file name.\n  * `[fileWithoutExt]` is replaced with the file name minus its extension, e.g. the `style` of `style.css`.\n  * `[ext]` is replaced with the file name extension, e.g. the `css` of `style.css`.\n  * `[path]` is replaced with the path of the original asset.\n  * `[query]` is replaced with the query.\n* `test`: All assets matching this RegExp are processed. Defaults to ```/\\.(js|css|html|svg)$/```.\n* `threshold`: Only assets bigger than this size (in bytes) are processed. Defaults to `0`.\n* `minRatio`: Only assets that compress better that this ratio are processed. Defaults to `0.8`.\n* `deleteOriginalAssets`: remove original files that were compressed with brotli. Default: false\n\nOptional arguments for Brotli (see [iltorb](https://github.com/MayhemYDG/iltorb#brotliencodeparams) doc for details):\n* `mode`: Default: 0,\n* `quality`: Default: 11,\n* `lgwin`: Default: 22,\n* `lgblock`: Default: 0,\n* `size_hint`: Default: 0,\n* `disable_literal_context_modeling`: Default: false\n\n# License\n\n[Nuxt.js](https://github.com/nuxt)\n\n[iltorb](https://github.com/MayhemYDG/iltorb)\n\n[brotli plugin for webpack](https://github.com/mynameiswhm/brotli-webpack-plugin)\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaliborgogic%2Fnuxt-brotli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaliborgogic%2Fnuxt-brotli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaliborgogic%2Fnuxt-brotli/lists"}