New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

download-size

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

download-size

check download size of npmjs packages before downloading

  • 1.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

npm download size

Are you on slow connection or limited mobile plan? Care about tarball size of your package? Care about bloat? How many bytes download are npm i lodash? Check with

$ download-size lodash
lodash@4.17.4: 303.39 KiB

before installing!

npm-download-size is also available online: https://arve0.github.io/npm-download-size/

Package sizes are resolved through a server side API, so only statistics is ever downloaded while using this tool.

Install

npm install -g download-size  # 8 KiB download

Usage

$ download-size svelte
svelte@3.25.0: 1.12 MiB

$ download-size -f package.json
package.json (svelte-app@1.0.0):
  devDependencies:
    npm-run-all@4.1.5: 429.35 KiB
    rollup@1.32.1: 845.42 KiB
    rollup-plugin-commonjs@10.1.0: 216.54 KiB
    rollup-plugin-livereload@1.3.0: 239.76 KiB
    rollup-plugin-node-resolve@5.2.0: 185.16 KiB
    rollup-plugin-svelte@5.2.3: 71.01 KiB
    rollup-plugin-terser@5.3.1: 827.78 KiB
    svelte@3.25.0: 1.12 MiB
All dependencies: 3.87 MiB

The reported size includes all dependecies. download-size gets size from the gzipped tarballs (e.g. http://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz), so space on disk will be higher.

Why?

Many node packages are bloated beyond belief. This tool helps you take an informed decision. Should you rely on that package? 1,1 MB for doing HTTP requests you say? Take a stand against bloat!

License

MIT

Keywords

FAQs

Package last updated on 13 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc