npm.io
2.1.1 • Published 1 month ago

function-exec-sync

Licence
MIT
Version
2.1.1
Deps
8
Size
119 kB
Vulns
0
Weekly
0

function-exec-sync

Call a function in a specific version of node for browser and node

Example 1

import call from "function-exec-sync";

const result = call("0.8", "path/to/file.js", "arg1", 2);
console.log(result); // return value
Example 2
var call = require("function-exec-sync"); // old js calling lts js

var result = call("lts", "path/to/file.js", "arg1", 2);
console.log(result); // return value
Documentation

API Docs

Keywords