nos

simple and powerful promise-based process spawning

Usage no npm install needed!

<script type="module">
  import nos from 'https://cdn.skypack.dev/nos';
</script>

README

nos Build Status Dependency Status

simple and powerful promise-based process spawning

Installation

npm install nos

Usage

var nos = require('nos');
nos('ls').done(function (process) { console.log("pid " + process.pid); });
nos('ls').wait().done(function (process) { console.log("exited with " + process.exitCode); });
nos('echo hello').read().done(function (buf) { console.log("output " + buf.toString()); });

Check out the tests for more ways to use nos.