Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gumbo-parser

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gumbo-parser - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

node-gumbo.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc