1.0.0 • Published 9 years ago
then-eos v1.0.0
then-eos
Promise-based end-of-stream.
Installation
npm i then-eos -S
Usage
var fs = require('fs');
var eos = require('then-eos');
var stream = fs.createReadStream('LICENSE');
eos(stream).then(function () {
// Reached end of the stream
});
License
MIT licensed.
1.0.0
9 years ago