is-stream-ended
Check if a stream has ended
Last updated 9 years ago by stephenplusplus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install is-stream-ended 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.4                                ...           latest (9 years ago)

5 Versions

  • 0.1.4                                ...           9 years ago
  • 0.1.3                                ...           10 years ago
  • 0.1.2                                ...           10 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 18
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE