説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
dienianindya d731c0e823 1001 update 2年前
..
index.d.ts 1001 update 2年前
index.js 1001 update 2年前
license 1001 update 2年前
package.json 1001 update 2年前
readme.md 1001 update 2年前

readme.md

is-stream-ended

Check if a stream has ended.

$ npm install --save is-stream-ended
var isStreamEnded = require('is-stream-ended');

isStreamEnded(stream); // false
stream.end();
isStreamEnded(stream); // true

isStreamEnded(stream)

stream

  • Type: Stream, Object

Providing a stream will check against the stream._readableState object. To check from the _writableState, provide that object directly.