PHP 8.2.30
Preview: isstream.js Size: 588 B
/lib/node_modules/npm/node_modules/isstream/isstream.js

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

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
6 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
150 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
588 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.10 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.62 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
2.37 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
6.81 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).