Skip to content

About

[Fork for loading dependencies with EverythingStays] Check if something is a Node.js stream

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

is-stream Build Status

Check if something is a Node.js stream

Install

$ npm install --save is-stream

Usage

var fs = require('fs');
var isStream = require('is-stream');

isStream(fs.createReadStream('unicorn.png'));
//=> true

isStream({});
//=> false

API

isStream(stream)

isStream.writable(stream)

isStream.readable(stream)

isStream.duplex(stream)

License

MIT © Sindre Sorhus

About

[Fork for loading dependencies with EverythingStays] Check if something is a Node.js stream

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages