How do I view the size of npm packages?

后端 未结 10 1725
故里飘歌
故里飘歌 2020-12-22 16:53

When I search for packages on NPM, I would like to see package sizes (in KB or MB, etc). NPM doesn’t seem to show this information.

How can I determine how much bloa

10条回答
  •  执念已碎
    2020-12-22 17:37

    Take a look at this cost-of-modules project. It's an npm package that will list the size of a package and number of children.

    Installation: npm install -g cost-of-modules

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

提交回复
热议问题