wha

whacko

Cheerio fork that uses parse5 as the underlying platform

Showing:

Popularity

Downloads/wk

1.4K

GitHub Stars

52

Maintenance

Last Commit

5yrs ago

Contributors

45

Package

Dependencies

4

Size (min+gzip)

87.2KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

⚠️ THIS PACKAGES IS NO LONGER MAINTAINED ⚠️

If you are interested in using cheerio with parse5 you can vote for this issue in the cheerio repo: https://github.com/cheeriojs/cheerio/issues/863

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)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial