Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 23, 2024 via pnpm

isstream 0.1.2

Determine if an object is a Stream
Package summary
Share
0
issues
1
license
1
MIT
Package created
7 Apr 2014
Version published
7 Mar 2015
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
isstream@0.1.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of isstream 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does isstream do?

isStream is a useful npm package in JavaScript that determines if an object is a standard Node.js Stream. It proficiently works with Node-core Stream objects (for versions 0.8, 0.10, 0.11, and theoretically, older and newer versions) and all versions of readable-stream. It is aptly described as the missing Stream.isStream(obj) in Node.js.

How do you use isstream?

Utilizing isStream in your code is remarkably simple. To include isStream functionality, require the package as follows: var isStream = require('isstream'). After using require to include the package, use it to verify if an object is a Stream using the following coding pattern:

var Stream = require('stream');
var isStream = require('isstream');

console.log(isStream(new Stream())); // true
console.log(isStream({})); // false 
console.log(isStream(new Stream.Readable())); // true

Apart from the general isStream functionality, isStream also provides specific methods to test if an object is a readable, writable, or duplex stream i.e., isReadable(obj), isWritable(obj), and isDuplex(obj) respectively. Below is an example of how you can use these methods:

var Stream = require('stream');
var isReadable = require('isstream').isReadable;
console.log(isReadable(new Stream.Readable())); // true

Where are the isstream docs?

As for documentation, the isStream descriptive details are primarily available on its GitHub repository page: https://github.com/rvagg/isstream. The repository's README.md file uses clear and concise examples to illustrate what isStream does, how to use it, and how it can be integrated into a project. For additional information or to familiarize oneself with any changes or updates to the isStream package, it's advisable to revisit the GitHub page regularly or follow the publisher's notifications.