1 | var Readability = require("../readabilitySAX.js"),
|
2 | WritableParser = require("htmlparser2/lib/WritableStream.js"),
|
3 | parserOptions = {
|
4 | lowerCaseTags: true
|
5 | };
|
6 |
|
7 | var WritableStream = function(settings){
|
8 | Readability.call(this, settings);
|
9 | WritableParser.call(this, this, parserOptions);
|
10 | };
|
11 |
|
12 | require("util").inherits(WritableStream, WritableParser);
|
13 |
|
14 | Object.getOwnPropertyNames(Readability.prototype).forEach(function(name){
|
15 | WritableStream.prototype[name] = Readability.prototype[name];
|
16 | });
|
17 |
|
18 | module.exports = WritableStream; |
\ | No newline at end of file |