Skip to content

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

License

Notifications You must be signed in to change notification settings

EverythingStays/is-stream-stay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%