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

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i assert-npm-version

Weekly Downloads

1

Version

4.0.0

License

MIT

Last publish

Collaborators

  • yoshuawuyts