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

Package detail

node-version-call

kmalakoff18.9kMIT1.9.10TypeScript support: included

Call a function in a specific version of node

apis, batch, cross-fetch, fetch, form, gapi, google, http, https, isomorphic-fetch, message, multipart, node-fetch, parser, parser-multipart, parts, typescript

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 value

Example 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

Documentation

API Docs