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.