Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

runtime-engine-check

sramam745MIT1.0.0

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

node, engines, engine, validate, validation, run-time, version, check, verify, satisfies

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