runtime-engine-check
v1.0.0
Published
Fast runtime validation of `engines.node` specified in package.json
Downloads
1,516
Maintainers
Readme
runtime-engine-check
Validate process.version against package.json:engines.node
Why
This is a simpler check than check engines, making it much faster.
Install
$ npm install --save runtime-engine-check
Usage
// in package.json
{
...
"engines": {
"node": ">=6.0.0"
},
...
}
require('runtime-engine-check')();
or
import * as runtimeCheck from 'runtime-engine-check';
runtimeCheck();
License
Apache-2.0