
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
Easily spawn multiple processes and stream their output

// Import exec
var exec = require('execjs');
// Spawn a new process running 'daemon1', passing a string as command.
// All output will be printed to stdout with its own color and tag
exec('daemon1 --bind 1.1.1.1');
// Spawn a new process running 'daemon2', passing an object
exec({
command: 'daemon2 --bind 2.2.2.2'
tag: 'd2' // Show 'd2' as the tag for this process's output
});
// Spawn a new process running 'daemon3', passing an object
// Save a reference to the ChildProcess object (see node child_process api)
proc = exec({
command: 'daemon3'
args: ['--bind', '3.3.3.3'] // Pass arguments seperately
print: function(line, type, tag) { // Use a custom print function
if (type == 'stdout') {
console.log('d3 says (stdout): ' + line);
} else if (type == 'stderr') {
console.log('d3 says (stderr): ' + line);
} else if (type == 'info') {
console.log('d3 info: ' + line);
}
}
});
// Kill the daemon3 instance
proc.kill();
Spawn a process from the provided command
Returns: ChildProcess object
Spawn a process from the provided options object, with the following supported keys:
Returns: ChildProcess object
FAQs
Easily spawn multiple processes and stream their output
The npm package execjs receives a total of 62 weekly downloads. As such, execjs popularity was classified as not popular.
We found that execjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.