Package Exports
- expected-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 (expected-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
expected-node-version
API
var version = require('expected-node-version')([directory])
Load order
The module tries to load the version using the fastest mechanisms.
It falls pack to loading the package.json content using require. So that content should will be cached.
- fetch version from package.json environment variable, which gets set by
npm start - fetch version from .nvmrc file
- fetch version from package.json value
engines.node