Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign 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
1.5.6
Version published
Weekly downloads
5.3K
2.27%
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 15 Dec 2025

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