Nerds Publishing Monstrosities
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

assert-npm-version

4.0.0 • Public • Published

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

install

npm i assert-npm-version

Downloadsweekly downloads

25

version

4.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability