Returns whether the stream is readable.
function isReadable | Node.js stream module | Bun BuildDocsReferenceGuidesBlogDiscord/node:stream/default/isReadableFisReadable BuildDocsReferenceGuidesBlogDiscord /node:stream/default/isReadableFisReadable stream.default.isReadablefunction isReadable(stream: ReadableStream | ReadableStreamany>): null | boolean; @returns Referenced typesinterface ReadableStreamR = any>readonly locked: booleancancel(reason?: any): Promisevoid>;getReader(options: { mode: 'byob' }): ReadableStreamBYOBReader;getReader(): ReadableStreamDefaultReaderR>;getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReaderR>;pipeThroughT>(transform: ReadableWritablePairT, R>,options?: StreamPipeOptions): ReadableStreamT>;pipeTo(destination: WritableStreamR>,options?: StreamPipeOptions): Promisevoid>;tee(): [ReadableStreamR>, ReadableStreamR>];values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIteratorR>;
Search the reference...
/
function
Only returns null if stream is not a valid Readable, Duplex or ReadableStream.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →function isReadable | Node.js stream module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function node:stream.default.isReadable | Bun