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

Parsing HTML using google gumbp parser

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-23.53%
Maintainers
1
Weekly downloads
 
Created
Source

Gumbo Parser

npm install is currently broken :(

do like this:

  1. clone repo
  2. cd into deps/gumbo-parser
  3. ./configure && make install
  4. link to local package

Sorry, I hope to fix this in the next day

Using google's gumbo parser to parse HTML in node.

var gumbo = require("gumbo-parser");
var tree = gumbo(htmlstring);

Nodetypes:

Currently i only output the values i get from gumbo itself

Element (3) nodeType, tagName, children, attributes
TextNode (1) nodeType, textContent
Document (0) nodeType
Comment (8) nodeType, textContent, nodeValue

Build and test:

node-gyp configure
node-gyp build
npm test

Keywords

FAQs

Package last updated on 16 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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