Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
dienianindya d731c0e823 1001 update il y a 2 ans
..
index.d.ts 1001 update il y a 2 ans
index.js 1001 update il y a 2 ans
license 1001 update il y a 2 ans
package.json 1001 update il y a 2 ans
readme.md 1001 update il y a 2 ans

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.