An open API service indexing awesome lists of open source software.

https://github.com/marcbachmann/assert-node-version

A module to assert the current node version against the one in the .npmrc or package.json file
https://github.com/marcbachmann/assert-node-version

Last synced: 9 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# assert-node-version

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

## API
```javascript
// 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])
```