JSPM

runtime-engine-check

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 286
  • Score
    100M100P100Q81935F
  • License MIT

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

Package Exports

  • runtime-engine-check

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (runtime-engine-check) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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