is-request-stream
Check that given value is request stream
Install
npm i is-request-stream --save
Usage
For more use-cases see the tests
var net = var http = var stream = var isRequestStream = var req = http //=> true //=> false //=> false //=> false //=> false //=> false
Related
- is-async-function: Check that given function is async (callback) function or not. Trying to… more
- is-child-process: Checks whether a value is child process result, which in case… more
- is-emitter: Check that given value is EventEmitter, not so strict as
is-node-emitter
. - is-kindof: Check type of given javascript value. Support promises, generators, streams,… more
- is-missing: Check that given
name
oruser/repo
exists in npm registry or in github as user… more - is-node-emitter: Strictly checks that given value is nodejs EventEmitter. It's easy, because… more
- is-node-stream: Strictly and correctly checks if value is a nodejs stream.
- is-typeof-error: Check that given value is any type of error and instanceof Error
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.