0.2.3 • Published 5 months ago

gumbo-html v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 months ago

0.2.0

5 months ago

0.2.3

5 months ago

0.2.2

5 months ago

0.1.2

12 months ago

0.1.1

3 years ago

0.1.0

3 years ago