runtime-engine-check

Fast runtime validation of `engines.node` specified in package.json

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
runtime-engine-check
021.0.07 years ago7 years agoMinified + gzip package size for runtime-engine-check in KB

Readme

runtime-engine-check Build Status
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