• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

importcost

know your import load
thelostone-mc
0.0.3 172
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

importcost package

know your import load - inspired from wix/import-cost

Installation

apm install importcost

Demo

importcost demo

when the npm module isn't installed locally

importcost-api demo

Usage & Working

Just install the package and it kicks in for '.js' and '.ts' files. The size will be calculated and displayed on the same line. importcost is triggered when active panel is switched / saved.

If the module hasn't been installed / not present in package.json, it assumes the latest version of the module.

Credits

  • wix/import-cost - Enables traversing node_modules to find the module cost.
  • pastelskys bundlephobia - Providing the means to find module cost via an API. [Used as a fallback mechanism]

Do check them amount ^_^

Contributing

PRs welcome as long it doesn't break existing functionality and all hell breaks loose!

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by