cp

childish-process

child_process for grown-ups

Showing:

Popularity

Downloads/wk

46

GitHub Stars

1

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

4

License

Unlicense

Type Definitions

Tree-Shakeable

No?

Categories

Readme

childish-process version npm

A simpler way to call spawn or exec of child_process. Makes it easy to call spawn with custom event-handlers. Makes options easy to template, extend, invoke strategies, generating event-handlers that can notify, for example.

Use

NPM

var run = require('childish-process');
  • run(command[, options]); same as child_process.spawn though using cross-spawn-async for better Windows support
  • run(command[, options], callback); delegates to child_process.exec

The options may include a "childish" key with custom event handlers for any of: "stdout", "stderr", "error", or "close". It's unlikely that node will ever add a childish option to its child_process.

See the handlers function and its defaults for what can be overridden via childish options.

Configuration

The configuration options are getting a huge upgrade, to be documented and probably tested. Meanwhile, example usage can be found in datomiki's gulpfile.js and notifications.json, while gulp-npm-test is an example for code usage.

Dependencies

Dependency Status devDependency Status

Unlicensed

This is free and unencumbered public domain software. For more information, see UNLICENSE.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial