Nature Preceded Machines

    spawn-local-bin

    0.1.4 • Public • Published

    spawn-local-bin NPM version

    Yet another spawn wrapper (that works on Windows).

    Install

    $ npm install spawn-local-bin

    Usage

    spawn()

    A child_process.spawn wrapper that inherits stdio.

    var spawn = require('spawn-local-bin');
     
    var cmd = 'ls';
    var args = ['~/', '-la'];
    var cwd = process.cwd();
     
    spawn(cmd, args, cwd);

    spawn.path()

    Adds all local bin's (located under node_modules/.bin) to the process.env PATH.

    var spawn = require('spawn-local-bin');
     
    var dir = __dirname;
     
    spawn.path(dir);

    Contributing

    1. Fork it!
    2. Create your feature branch: git checkout -b my-new-feature
    3. Commit your changes: git commit -m 'Add some feature'
    4. Push to the branch: git push origin my-new-feature
    5. Submit a pull request :D

    History

    For detailed changelog, check Releases.

    License

    MIT License © Zeno Rocha

    Keywords

    none

    Install

    npm i spawn-local-bin

    DownloadsWeekly Downloads

    24

    Version

    0.1.4

    License

    MIT

    Last publish

    Collaborators

    • zenorocha