assert-node-version

1.0.3 • Public • Published

assert-node-version

A module to assert the current node version against the one in the package.json or .nvmrc file.

API

// directory can be a directory which is used to lookup the node version
// `process.cwd()` is used as default directory
// The method throws an error if the version isn't satisfied
require('assert-node-version')([directory])

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    84,968
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    84,968
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i assert-node-version

Weekly Downloads

84,971

Version

1.0.3

License

MIT

Last publish

Collaborators

  • marcbachmann