diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/htmlparser2/lib/WritableStream.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/htmlparser2/lib/WritableStream.js')
-rw-r--r-- | node_modules/htmlparser2/lib/WritableStream.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/node_modules/htmlparser2/lib/WritableStream.js b/node_modules/htmlparser2/lib/WritableStream.js deleted file mode 100644 index e65b0732b..000000000 --- a/node_modules/htmlparser2/lib/WritableStream.js +++ /dev/null @@ -1,21 +0,0 @@ -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(); -};
\ No newline at end of file |