Native process spawning for JavaScript. Spawn child processes with full control over their stdio, environment, and working directory, and exchange messages with them over an IPC channel.
npm i bare-subprocess
const { spawn } = require('bare-subprocess')
const subprocess = spawn('echo', ['hello', 'world'], {
stdio: 'inherit'
})
subprocess.on('exit', () => console.log('done'))See the bare-subprocess reference.
Apache-2.0