substance-xdom

0.1.1 • Public • Published

substance-xdom

A light-weight DOM implementation build on top of htmlparser2.

TODO: as this not related to cheerio anymore we should rename the project.

Example:

import { parseHTML } from 'substance-cheerio'
let elements = parseHTML('<p>Hello <b>World</b>!</p>')
let p = elements[0]
let b = p.find('b')
console.log(b.getTextContent())

Readme

Keywords

none

Package Sidebar

Install

npm i substance-xdom

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • michael
  • oliver