{"id":15759983,"url":"https://github.com/huozhi/js-compressed-size","last_synced_at":"2026-02-26T08:02:50.567Z","repository":{"id":57282934,"uuid":"271489712","full_name":"huozhi/js-compressed-size","owner":"huozhi","description":"display the javascript file size after minified and gzipped","archived":false,"fork":false,"pushed_at":"2022-07-20T13:06:46.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T21:42:47.996Z","etag":null,"topics":["compress","gzip","minify","minify-javascript","size","size-calculation"],"latest_commit_sha":null,"homepage":"https://www.npm.im/js-compressed-size","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/huozhi.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":"2020-06-11T08:13:08.000Z","updated_at":"2024-12-26T20:26:38.000Z","dependencies_parsed_at":"2022-09-17T13:01:07.541Z","dependency_job_id":null,"html_url":"https://github.com/huozhi/js-compressed-size","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huozhi%2Fjs-compressed-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huozhi%2Fjs-compressed-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huozhi%2Fjs-compressed-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huozhi%2Fjs-compressed-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huozhi","download_url":"https://codeload.github.com/huozhi/js-compressed-size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094939,"owners_count":21211837,"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":["compress","gzip","minify","minify-javascript","size","size-calculation"],"created_at":"2024-10-04T10:40:28.124Z","updated_at":"2026-02-26T08:02:50.470Z","avatar_url":"https://github.com/huozhi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-compressed-size\n\u003e display the javascript file size after minified and gzipped\n\n## Why\n\nif you create any simple javascript or typescript library, usually you don't need to bundle it into one file or do any further optimization on it. but compile might be the only thing required. If there's any optimization could be done on library side, tree-shaking is one.\n\nwhen it's adopted by a web app or any other kind of app, the app layer will do the full bundle and minify. maybe bundle with webpack and compress all assets with terser. your library is just part of the output minified file, and it will be compressed 2nd round by gzip during transportation.\n\nso you might be curious about the final file size. :)\n\n## Usage\n\n```sh\n→ js-compressed-size ./bundle.min.js\n\nInput index.js\n.....................\nOrigin size   \u003e\u003e 362 kB (raw bytes: 361779)\nMinified size \u003e\u003e 361 kB (raw bytes: 361397)\nAfter gzipped \u003e\u003e 102 kB (raw bytes: 102097)\n```\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuozhi%2Fjs-compressed-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuozhi%2Fjs-compressed-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuozhi%2Fjs-compressed-size/lists"}