Here is an online tool (also CLI available) that would help you analyse size of package module, called bundlephobia. This thing lets you understand the performance cost of
npm install on a new npm package before actually adding it to your bundle. You can search over all available public packages on npm repository.
Another thing about this tool is it shows package size breakdown, which also helps you take a call whether you are wanting to have such dependency size chain.
So next time you are adding a dependency to your project, make sure you know the cost!
Official Site: bundlephobia.com
Github Repo: bundlephobia