whacko
Cheerio (http://cheeriojs.github.io/cheerio/) fork that uses parse5 HTML-parser (https://github.com/inikulin/parse5) as an underlying platform
Last updated 11 years ago by inikulin .
Repository · Bugs · Original npm · Tarball · package.json
$ npm install whacko 
SYNC missed versions from official npm registry.

Whacko

Build Status npm

Whacko is a fork of cheerio that uses parse5 as an underlying platform.

Install

$ npm install whacko

API

Difference with cheerio:

  • Use $.load(content) to load HTML documents (e.g. missing <html> tags will be automatically emitted in this case).
  • Use $(content) to create HTML-fragments which can be later added to the loaded document.
  • Parser options (e.g. xmlMode and normalizeWhitespace) are missing since whacko is intended for spec compliant HTML parsing.
  • New parser option encodeEntities added. When false, it disables HTML entities decoding on serialization.
  • New parser option decodeHtmlEntities added. When false, it disables HTML entities decoding on parse.

In all other aspects it is the same with the cheerio API.

Questions or suggestions?

If you have any questions, please feel free to create an issue here on github.

Author

Ivan Nikulin (ifaaan@gmail.com)

Current Tags

  • 0.12.15                                ...           doctype-fix (12 years ago)
  • 0.19.1                                ...           latest (11 years ago)

23 Versions

  • 0.19.1                                ...           11 years ago
  • 0.19.0                                ...           11 years ago
  • 0.18.1                                ...           12 years ago
  • 0.17.4                                ...           12 years ago
  • 0.17.3                                ...           12 years ago
  • 0.17.2                                ...           12 years ago
  • 0.17.1                                ...           12 years ago
  • 0.12.15                                ...           12 years ago
  • 0.13.3                                ...           12 years ago
  • 0.12.14                                ...           12 years ago
  • 0.12.12                                ...           12 years ago
  • 0.13.2                                ...           13 years ago
  • 0.13.1                                ...           13 years ago
  • 0.12.10                                ...           13 years ago
  • 0.12.9                                ...           13 years ago
  • 0.12.8                                ...           13 years ago
  • 0.12.7                                ...           13 years ago
  • 0.12.6                                ...           13 years ago
  • 0.12.5                                ...           13 years ago
  • 0.12.4                                ...           13 years ago
  • 0.12.3                                ...           13 years ago
  • 0.12.2                                ...           13 years ago
  • 0.12.1                                ...           13 years ago
Maintainers (1)
Downloads
Total 47
Today 1
This Week 47
This Month 47
Last Day 23
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (4)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE