# whacko

> Cheerio (http://cheeriojs.github.io/cheerio/) fork that uses parse5 HTML-parser (https://github.com/inikulin/parse5) as an underlying platform

Latest version **0.19.1** (published 2015-12-04) · 0 weekly downloads

## Install

```sh
npm install whacko
pnpm add whacko
yarn add whacko
bun add whacko
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.19.1 |
| Published | 2015-12-04 |
| First published | 2013-07-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.6 |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Matt Mueller |
| Maintainers | inikulin |
| Keywords | htmlparser, jquery, selector, scraper, parser, html |

## Links

- npm: https://www.npmjs.com/package/whacko
- Repository: https://github.com/inikulin/whacko
- Homepage: https://github.com/inikulin/whacko#readme
- Issues: https://github.com/inikulin/whacko/issues
- npm.io page: https://npm.io/package/whacko

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [parse5](https://npm.io/package/parse5.md) ^1.4.2
- [domutils](https://npm.io/package/domutils.md) 1.5
- [css-select](https://npm.io/package/css-select.md) ^1.2.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.19.1 (latest) — 2015-12-04
- 0.12.15 (doctype-fix) — 2014-06-16
- 0.19.0 — 2015-12-04
- 0.18.1 — 2015-04-22
- 0.17.4 — 2015-02-25
- 0.17.3 — 2015-02-03
- 0.17.2 — 2014-11-06
- 0.17.1 — 2014-10-18
- 0.13.3 — 2014-06-16
- 0.12.14 — 2014-06-16
- 0.12.12 — 2014-06-16
- 0.13.2 — 2014-03-04
- 0.13.1 — 2014-03-04
- 0.12.10 — 2014-01-27
- 0.12.9 — 2013-10-17
- … 8 more at https://npm.io/package/whacko/versions

## README

# :warning: THIS PACKAGES IS NO LONGER MAINTAINED :warning:
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](https://api.travis-ci.org/inikulin/whacko.svg)](https://travis-ci.org/inikulin/whacko)
[![npm](https://img.shields.io/npm/v/whacko.svg)](https://www.npmjs.com/package/whacko)

Whacko is a fork of [cheerio](https://github.com/cheeriojs/cheerio) that uses [parse5](https://github.com/inikulin/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](https://github.com/cheeriojs/cheerio#api).

## Questions or suggestions?
If you have any questions, please feel free to create an issue [here on github](https://github.com/inikulin/whacko/issues).


## Author
[Ivan Nikulin](https://github.com/inikulin) (ifaaan@gmail.com)

---
_Source: https://npm.io/package/whacko · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
