Skip to content

Checks if node version matches the version defined in package.json

License

Notifications You must be signed in to change notification settings

nuttt/node-version-is

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')

About

Checks if node version matches the version defined in package.json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published