gumbo-parser
Advanced tools
Comparing version 0.1.0 to 0.1.1
var bind = require("./build/Release/binding"); | ||
module.exports = function Gumbo() { | ||
var ret = bind.apply(this, arguments); | ||
var ret = bind.gumbo.apply(this, arguments); | ||
@@ -6,0 +6,0 @@ // extract the root tag from document resp |
{ | ||
"name": "gumbo-parser", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Karl Westin <karl.westin@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Parsing HTML using google gumbo parser", |
@@ -31,2 +31,11 @@ var gumbo = require("../node-gumbo"); | ||
} | ||
fs.readFile(__dirname + "/test.html", { encoding: "utf-8" }, tryParse); | ||
// API changed between 0.8 and 0.10 | ||
var args = [__dirname + "/test.html"]; | ||
if(fs.readFile.length == 2) { | ||
args.push("utf-8", tryParse); | ||
} else { | ||
args.push({ encoding: "utf-8" }, tryParse); | ||
} | ||
fs.readFile.apply(fs, args); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1840247
3440