Socket
Socket
Sign inDemoInstall

assert-npm-version

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    assert-npm-version

Assert that npm is at least a certain version


Version published
Weekly downloads
6
Maintainers
1
Install size
195 kB
Created
Weekly downloads
 

Readme

Source

assert-npm-version

NPM version build status Downloads js-standard-style

Assert that npm is at least a certain version.

Installation

$ npm install assert-npm-version

Usage

cli

$ assert-npm-version >=2.0.0

package.json

{
  "scripts": {
    "prepublish": "assert-npm-version >=2.0.0"
  }
}

Why?

When working with multiple people and / or node versions, it can quickly become confusing what features npm has, or doesn't have. By asserting that npm is at least a certain version, at least some npm related issues can be caught early.

License

MIT

Keywords

FAQs

Last updated on 22 Jun 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc