@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

3

Version

0.0.3

License

ISC

Last publish

Collaborators

  • cistreamrail
  • streamrailci
  • laslo-chechur
  • ironsource_neon_ltd
  • innay
  • matan.chetzroni
  • ittypea
  • amitbiderman
  • dana.huberfeld
  • georgega
  • shahar-f
  • jessicafliker
  • tomer.arzuan
  • shay.peleg
  • talboosyrise
  • meytar.berrebi
  • vladimir-rise
  • aryehlev