JSPM

assert-node-version

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 43679
  • Score
    100M100P100Q147440F
  • License MIT

Asserts the node version against one from the package.json or .nvmrc file

Package Exports

  • assert-node-version

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 (assert-node-version) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

assert-node-version

A module to assert the current node version against the one in the package.json or .nvmrc file.

API

// 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])