ptoect
Some checks failed
CI / ci (push) Has been cancelled

This commit is contained in:
mokangleb1818-crypto
2026-05-18 10:55:29 +03:00
commit 61b4c108c2
4001 changed files with 1385100 additions and 0 deletions

29
node_modules/is-stream/index.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
export function isStream(stream) {
return stream !== null
&& typeof stream === 'object'
&& typeof stream.pipe === 'function';
}
export function isWritableStream(stream) {
return isStream(stream)
&& stream.writable !== false
&& typeof stream._write === 'function'
&& typeof stream._writableState === 'object';
}
export function isReadableStream(stream) {
return isStream(stream)
&& stream.readable !== false
&& typeof stream._read === 'function'
&& typeof stream._readableState === 'object';
}
export function isDuplexStream(stream) {
return isWritableStream(stream)
&& isReadableStream(stream);
}
export function isTransformStream(stream) {
return isDuplexStream(stream)
&& typeof stream._transform === 'function';
}