0.2.3 • Published 12 months ago

gumbo-html v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

CSS selector based on Gumbo HTML parser.

Installation

$ npm install gumbo-html

Usage

Example:

import {parse} from 'gumbo-html';

const html = ` 
<html>
  <p class="foo bar blah">Foo</p>
  <p class="bar">Bar</p>
</html>
`

const xdoc = parse(html);

xdoc.find('.bar').forEach(el => {
  console.log(el.innerText)
});
0.2.1

12 months ago

0.2.0

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.1.2

2 years ago

0.1.1

4 years ago

0.1.0

4 years ago