exec-inline

Make it more convenient to execute commands with inherited stdio

Usage no npm install needed!

<script type="module">
  import execInline from 'https://cdn.skypack.dev/exec-inline';
</script>

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()

License

MIT © Hoàng Văn Khải