{"id":23274317,"url":"https://github.com/luncheon/esbuild-plugin-gzip","last_synced_at":"2025-08-21T06:31:56.054Z","repository":{"id":81428706,"uuid":"361982623","full_name":"luncheon/esbuild-plugin-gzip","owner":"luncheon","description":"Gzip and Brotli compression for esbuild","archived":false,"fork":false,"pushed_at":"2021-04-27T04:56:02.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-30T16:51:17.294Z","etag":null,"topics":["esbuild","esbuild-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luncheon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-27T04:43:10.000Z","updated_at":"2024-06-19T22:46:37.740Z","dependencies_parsed_at":"2023-06-12T08:30:31.265Z","dependency_job_id":null,"html_url":"https://github.com/luncheon/esbuild-plugin-gzip","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"7ca395b908095ec6cc7b68c02786829cc2d2abd2"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luncheon%2Fesbuild-plugin-gzip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luncheon%2Fesbuild-plugin-gzip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luncheon%2Fesbuild-plugin-gzip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luncheon%2Fesbuild-plugin-gzip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luncheon","download_url":"https://codeload.github.com/luncheon/esbuild-plugin-gzip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230494926,"owners_count":18235047,"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":["esbuild","esbuild-plugin"],"created_at":"2024-12-19T20:12:50.767Z","updated_at":"2024-12-19T20:12:51.307Z","avatar_url":"https://github.com/luncheon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esbuild-plugin-gzip\n\nGzip and Brotli compression for [esbuild](https://esbuild.github.io/).\n\n## Installation\n\n```sh\n$ npm i -D esbuild @luncheon/esbuild-plugin-gzip\n```\n\n## Usage Example\n\n```js\nconst esbuild = require('esbuild')\nconst gzipPlugin = require('@luncheon/esbuild-plugin-gzip')\n\nesbuild.build({\n  entryPoints: ['src/app.ts'],\n  outdir: 'dist',\n  bundle: true,\n  minify: true,\n  write: false, // write must be false\n  plugins: [gzipPlugin()],\n})\n```\n\n## Options\n\n```js\ngzipPlugin({\n  uncompressed: true,\n  gzip: true,\n  brotli: true,\n  onEnd: ({ outputFiles }) =\u003e {\n    // outputFiles.forEach(({ path, contents }) =\u003e {})\n  }\n})\n```\n\n## License\n\n[WTFPL](http://www.wtfpl.net/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluncheon%2Fesbuild-plugin-gzip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluncheon%2Fesbuild-plugin-gzip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluncheon%2Fesbuild-plugin-gzip/lists"}