Last 12 weeks · 0 commits
4 of 6 standards met
Fixes #7. The methods in this package check two different things: 1. Whether the argument has the correct stream type 2. Whether the stream is writable/readable, i.e. whether it has been closed There are times when one would want to check only but not . For example: The user might not need the stream to be open since many stream core methods (, , etc.) work fine with closed streams. The user might want to provide with a different error message for and This PR adds a boolean option to toggle off that specific check. By default, it is for and for the others to keep backward compatibility. I.e. this is not a breaking change.
Repository: sindresorhus/is-stream. Description: Check if something is a Node.js stream Stars: 116, Forks: 22. Primary language: JavaScript. Languages: JavaScript (88.9%), TypeScript (11.1%). License: MIT. Latest release: v4.0.1 (2y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, ehmicky, coreyfarrell, BendingBender, kevva, Richienb.