siddharthkp / cost-of-modules
- воскресенье, 30 октября 2016 г. в 03:14:29
JavaScript
Find out which of your dependencies is causing bloat 😥
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
npm install -g cost-of-modules
Run cost-of-modules
in the directory you are working in.
--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
MIT © siddharthkp