0.2.3 • Published 6 months ago

gumbo-html v0.2.3

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

6 months ago

0.2.0

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.1.2

1 year ago

0.1.1

3 years ago

0.1.0

3 years ago