functional-shell

0.1.1 • Public • Published

functional-shell

var echo = function() {
    /*
    #!/bin/sh
    echo $1
    */
};

var process = sh(echo, ["hello"]);
process.on('stdout', function(data) {
    console.log(data.toString()); // hello\n
});
process.on('stderr', function(data) {
    console.error(data);
});
process.on('error', function(err) {
    throw err;
});
process.on('close', function(data) {
    console.log(data); // 0 finish status code
});

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i functional-shell

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • sxend