github

siddharthkp / cost-of-modules

  • воскресенье, 30 октября 2016 г. в 03:14:29
https://github.com/siddharthkp/cost-of-modules

JavaScript
Find out which of your dependencies is causing bloat 😥



Cost of modules

Find out which of your dependencies is causing bloat

Build
Status npm

Find out which of your dependencies is causing bloat

With npm 2.x, it was easy to find which of your dependencies is taking a lot of space. You could just look at the size of each directory in node_modules

With npm 3 and flat deps this isn't as straightforward. This tool makes it easier.

Inspired from npm/npm/issues/10361

Install

npm install -g cost-of-modules

Usage

Run cost-of-modules in the directory you are working in.

Options

--less Show the biggest 10 modules

--yarn Use yarn instead of npm to install dependencies

--no-install Skip installation

--include-dev Include devDependencies as well

Show your support

⭐️ this repo

License

MIT © siddharthkp