You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

function-exec-sync

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

function-exec-sync

Run a function in a node process

Source
npmnpm
Version
0.2.6
Version published
Weekly downloads
5.1K
-0.39%
Maintainers
1
Weekly downloads
 
Created
Source

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

function

FAQs

Package last updated on 04 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts