chat-client/node_modules/is-stream
jsrobson10 c63a625a0a Can now send links, do some string formatting, send newlines, organised chats more. Updated the readme 2019-04-17 08:53:12 +10:00
..
index.js Can now send links, do some string formatting, send newlines, organised chats more. Updated the readme 2019-04-17 08:53:12 +10:00
license Can now send links, do some string formatting, send newlines, organised chats more. Updated the readme 2019-04-17 08:53:12 +10:00
package.json Can now send links, do some string formatting, send newlines, organised chats more. Updated the readme 2019-04-17 08:53:12 +10:00
readme.md Can now send links, do some string formatting, send newlines, organised chats more. Updated the readme 2019-04-17 08:53:12 +10:00

readme.md

is-stream Build Status

Check if something is a Node.js stream

Install

$ npm install --save is-stream

Usage

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

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

isStream({});
//=> false

API

isStream(stream)

isStream.writable(stream)

isStream.readable(stream)

isStream.duplex(stream)

isStream.transform(stream)

License

MIT © Sindre Sorhus