0.0.3 • Published 8 years ago

@streamrail/npm-check v0.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

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

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago