Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@streamrail/npm-check

Package Overview
Dependencies
Maintainers
14
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@streamrail/npm-check

Finds multiple modules versions in your node_modules

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
Maintainers
14
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 18 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc