{"id":13657213,"url":"https://github.com/egoist/npm-size","last_synced_at":"2025-08-26T15:07:26.280Z","repository":{"id":34070150,"uuid":"168391297","full_name":"egoist/npm-size","owner":"egoist","description":"Get the install size of an npm package.","archived":false,"fork":false,"pushed_at":"2022-12-09T12:41:26.000Z","size":1721,"stargazers_count":102,"open_issues_count":23,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T20:07:37.309Z","etag":null,"topics":[],"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/egoist.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":"2019-01-30T18:14:56.000Z","updated_at":"2025-05-16T16:06:50.000Z","dependencies_parsed_at":"2023-01-15T04:30:39.384Z","dependency_job_id":null,"html_url":"https://github.com/egoist/npm-size","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/egoist/npm-size","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fnpm-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fnpm-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fnpm-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fnpm-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egoist","download_url":"https://codeload.github.com/egoist/npm-size/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fnpm-size/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265802059,"owners_count":23830508,"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":[],"created_at":"2024-08-02T05:00:38.681Z","updated_at":"2025-07-18T17:36:19.156Z","avatar_url":"https://github.com/egoist.png","language":"JavaScript","funding_links":["https://www.patreon.com/egoist"],"categories":["JavaScript"],"sub_categories":[],"readme":"# npm-size\n\n[![NPM version](https://badgen.net/npm/v/npm-size)](https://npmjs.com/package/npm-size) [![NPM downloads](https://badgen.net/npm/dm/npm-size)](https://npmjs.com/package/npm-size) [![CircleCI](https://badgen.net/circleci/github/egoist/npm-size/master)](https://circleci.com/gh/egoist/npm-size/tree/master)\n\n**Please consider [donating](https://www.patreon.com/egoist) to this project's author, [EGOIST](#author), to show your ❤️ and support.**\n\n\u003e Get the install size of an npm package.\n\n## What is Install Size?\n\nThe \"install size\" is the size your hard drive will report after running `npm install`. This includes the package you installed, all of the dependencies, and its dependency's dependencies...and so on. —— Quoted from [Package Phobia](https://packagephobia.now.sh/), an online alternative to this package.\n\n\u003cimg src=\"https://unpkg.com/@egoist/media/projects/npm-size/preview.svg\" width=\"500\" alt=\"preview\"\u003e\n\n## Install\n\n```bash\nnpm i -g npm-size\n```\n\n## Usage\n\n```bash\nnpm-size [...package names]\n\n# Examples\nnpm-size webpack rollup\n# Local package\nnpm-size ./my-package\n\n# Exit with error when the size exceeds 5MB\nnpm-size ./ --limit 5mb\n\n# Print sizes for the dependencies listed in a package.json\nnpm-size ./package.json ./packages/foo/package.json\n\n# Print sizes for the dependencies of a package\nnpm-size chalk/package.json\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n**npm-size** © EGOIST, Released under the [MIT](./LICENSE) License.\u003cbr\u003e\nAuthored and maintained by EGOIST with help from contributors ([list](https://github.com/egoist/npm-size/contributors)).\n\n\u003e [egoist.sh](https://egoist.sh) · GitHub [@EGOIST](https://github.com/egoist) · Twitter [@\\_egoistlily](https://twitter.com/_egoistlily)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegoist%2Fnpm-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegoist%2Fnpm-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegoist%2Fnpm-size/lists"}