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
- Host: GitHub
- URL: https://github.com/marcbachmann/assert-node-version
- Owner: marcbachmann
- Created: 2015-09-12T13:45:30.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:19:54.000Z (over 2 years ago)
- Last Synced: 2025-01-03T04:50:36.459Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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])
```