Sha256: 68b3521ed4dcd6e5acaeb41b075d0693cb14f29c2cce5a2338b584a21a26ac53
Contents?: true
Size: 502 Bytes
Versions: 4
Compression:
Stored size: 502 Bytes
Contents
module.exports = Stream; var Parser = require("./Parser.js"), WritableStream = require("stream").Writable || require("readable-stream").Writable; function Stream(cbs, options){ var parser = this._parser = new Parser(cbs, options); WritableStream.call(this, {decodeStrings: false}); this.once("finish", function(){ parser.end(); }); } require("util").inherits(Stream, WritableStream); WritableStream.prototype._write = function(chunk, encoding, cb){ this._parser.write(chunk); cb(); };
Version data entries
4 entries across 4 versions & 3 rubygems