exec-inline
v0.0.5
Published
Make it more convenient to execute commands with inherited stdio
Downloads
52
Maintainers
Readme
exec-inline
Make it more convenient to execute commands with inherited stdio
Usage
const { spawnSync } = require('exec-inline')
// Print "hello world"
spawnSync('echo', 'hello', 'world')
// Print "Exiting" and exit with code 123
spawnSync('bash', '-c', 'console.log("Exiting"); process.exit(123)').exit()