is-child-process
Checks whether a value is child process result, which in case is more specific Node.js EventEmitter. Browserify-ready.
Install
npm i is-child-process --save
Usage
For more use-cases see the tests
var isChildProcess =
false
returns var fs = var Dush = var Emitter = EventEmitter //=> false //=> false //=> false
true
returns var cp = var spawn = cpvar exec = cp //=> true //=> true
Related
- is-emitter: Check that given value is EventEmitter, not so strict as
is-node-emitter
. - is-node-emitter: Strictly checks that given value is nodejs EventEmitter. It's easy, because his API is in frozen state.
- is-node-stream: Strictly and correctly checks if value is a nodejs stream.
- is-request-stream: Check that given value is request stream
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.