0.1.3 • Published 8 years ago

version-is v0.1.3

Weekly downloads
8
License
MIT
Repository
github
Last release
8 years ago

node-version-is

Checks if node version matches the version defined in package.json (or parameter)

Installation

npm install version-is

Usage

  • version is defined using semver syntax (the one that you use in package.json)
  • It will throw error if node's version is not satisfied

Via package.json

package.json

engines: {
    "node": "~5.5"
}

index.js (your entry point)

require('version-is')()

Via parameter

index.js

require('version-is')('~5.5')
0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago