Package Exports
- node-version-call
- node-version-call/dist/cjs/index.js
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 (node-version-call) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-version-call
Call a function in a specific version of node
Example 1
import call from "node-version-call";
const result = call("0.8", "path/to/file.js", "arg1", 2);
console.log(result); // return valueExample 2
var call = require("node-version-call"); // old js calling lts js
var result = call("lts", "path/to/file.js", "arg1", 2);
console.log(result); // return value