@streamrail/npm-check

0.0.3 • Public • Published

npm-check

Finds multiple modules versions in your node_modules

Why?

It is possible that a single package gets included multiple times in your bundle due to different package versions, resulting in extra bloat and may lead to bugs.

Install

npm i @streamrail/npm-check --save-dev

Usage

I recommend running this script before your tests in the following way:

In package.json:

"scripts": {
  "test": "node node_modules/@streamrail/npm-check/npm-check.js && ... build && ... test",
},

The default behaviour of the script is to exit with error when multiple versions found.

Output examples:

Valid:

valid

Invalid:

invalid

Package Sidebar

Install

npm i @streamrail/npm-check

Weekly Downloads

35

Version

0.0.3

License

ISC

Last publish

Collaborators

  • tomer.arzuan
  • shahar-f
  • or_bd_rise
  • georgega
  • amitbiderman
  • ittypea
  • aryehlev
  • streamrailci
  • dana.huberfeld
  • matan.chetzroni
  • cistreamrail
  • laslo.chechur
  • ironsource_neon_ltd
  • innay
  • oronw