{"id":18534817,"url":"https://github.com/atomicojs/rollup-plugin-sizes","last_synced_at":"2025-10-12T20:52:24.990Z","repository":{"id":57099551,"uuid":"188530640","full_name":"atomicojs/rollup-plugin-sizes","owner":"atomicojs","description":"This small utility allows you to monitor the size of the bundle as it is generated by rollup, generating a record by console, the size of both in gzip and brotli.","archived":false,"fork":false,"pushed_at":"2020-07-19T09:45:39.000Z","size":129,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-04T19:46:22.428Z","etag":null,"topics":["brotli","gzip","rollup"],"latest_commit_sha":null,"homepage":"","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/atomicojs.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-05-25T06:43:19.000Z","updated_at":"2022-04-25T00:29:14.000Z","dependencies_parsed_at":"2022-08-20T16:51:16.914Z","dependency_job_id":null,"html_url":"https://github.com/atomicojs/rollup-plugin-sizes","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/atomicojs/rollup-plugin-sizes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicojs%2Frollup-plugin-sizes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicojs%2Frollup-plugin-sizes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicojs%2Frollup-plugin-sizes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicojs%2Frollup-plugin-sizes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomicojs","download_url":"https://codeload.github.com/atomicojs/rollup-plugin-sizes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicojs%2Frollup-plugin-sizes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265344812,"owners_count":23750564,"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","gzip","rollup"],"created_at":"2024-11-06T19:17:07.492Z","updated_at":"2025-10-12T20:52:19.942Z","avatar_url":"https://github.com/atomicojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @atomico/rollup-plugin-sizes\n\nThis small utility allows you to monitor the size of the bundle as it is generated by rollup, generating a record by console, the size of both in gzip and brotli.\n\n![example](https://res.cloudinary.com/dz0i8dmpt/image/upload/v1558889910/github/rollup-plugin-sizes/Grupo_2.png)\n\n```js\nimport sizes from \"@atomico/rollup-plugins-sizes\";\n\nexport default {\n  input: /*...*/,\n  output: /*...*/,\n  plugins: [\n    sizes(10)//10 === 10kb\n  ]\n};\n```\n\nAdditionally you can give `sizes(limit:number|string)` a first parameter capable of generating alerts by console, example `size(1.2)`, **this parameter will always represent KB**.\n\n1.  if it exceeds the limit, the file will be printed in red.\n2.  If it approaches 90% of the limit, it will be printed in yellow.\n3.  if it does not fulfill the 2 previous conditions, it is printed in green.\n\n\u003e compatible with dynamic rollup import\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicojs%2Frollup-plugin-sizes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomicojs%2Frollup-plugin-sizes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicojs%2Frollup-plugin-sizes/lists"}