Home

Awesome

is-request-stream npmjs.com The MIT License

Check that given value is request stream

code climate standard code style travis build status cov status dependency status

Install

npm i is-request-stream --save

Usage

For more use-cases see the tests

var net = require('net')
var http = require('http')
var stream = require('stream')
var isRequestStream = require('is-request-stream')

var req = http.get('http://www.tunnckocore.tk')

isRequestStream(req) //=> true
isRequestStream(new net.Socket()) //=> false
isRequestStream(new stream.Readable()) //=> false
isRequestStream(new stream.Writable()) //=> false
isRequestStream(new stream.Transform()) //=> false
isRequestStream(new stream.Duplex()) //=> false

Related

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.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github