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

Version Path
lanes-0.8.0 node_modules/renderkid/node_modules/htmlparser2/lib/WritableStream.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/htmlparser2/lib/WritableStream.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/htmlparser2/lib/WritableStream.js
exercism-analysis-0.1.1 vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/WritableStream.js