Current Path: > > lib > node_modules > npm > node_modules > isstream
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
.npmignore | File | 6 bytes | March 10 2021 14:36:39. | |
.travis.yml | File | 150 bytes | March 10 2021 14:36:39. | |
LICENSE.md | File | 1125 bytes | March 10 2021 14:36:39. | |
README.md | File | 2424 bytes | March 10 2021 14:36:39. | |
isstream.js | File | 588 bytes | March 10 2021 14:36:39. | |
package.json | File | 1658 bytes | March 10 2021 14:36:39. | |
test.js | File | 6975 bytes | March 10 2021 14:36:39. |
var stream = require('stream') function isStream (obj) { return obj instanceof stream.Stream } function isReadable (obj) { return isStream(obj) && typeof obj._read == 'function' && typeof obj._readableState == 'object' } function isWritable (obj) { return isStream(obj) && typeof obj._write == 'function' && typeof obj._writableState == 'object' } function isDuplex (obj) { return isReadable(obj) && isWritable(obj) } module.exports = isStream module.exports.isReadable = isReadable module.exports.isWritable = isWritable module.exports.isDuplex = isDuplex
SILENT KILLER Tool