# htmlparse

> Minimal blazing fast HTML parser

Latest version **0.0.8** (published 2016-12-04) · MIT license · 0 weekly downloads

## Install

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

## 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.0.8 |
| Published | 2016-12-04 |
| First published | 2016-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Felix Maier |
| Maintainers | maierfelix |
| Keywords | html, dom, rss, parser, atom |

## Links

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

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2016-12-04
- 0.0.4 — 2016-12-02
- 0.0.3 — 2016-12-02
- 0.0.2 — 2016-12-02

## README

<div align="center">
  <h3>A minimal blazing fast HTML parser with zero dependencies.</h3>
</div>

<div align="center">
  <a href="https://travis-ci.org/maierfelix/htmlparse">
    <img src="https://img.shields.io/travis/maierfelix/htmlparse/master.svg?style=flat-square" alt="Build Status" />
  </a>
  <a href="https://www.npmjs.com/package/htmlparse">
    <img src="https://img.shields.io/npm/v/htmlparse.svg?style=flat-square" alt="NPM Version" />
  </a>
  <a href="https://nodejs.org/api/documentation.html#documentation_stability_index">
    <img src="https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square" alt="API Stability" />
  </a>
</div>

## Installation

```sh
npm install htmlparse
```

Or clone the source:

```sh
git clone https://github.com/maierfelix/htmlparse.git
```

## API


#### parse
Use `parse(str)` to parse an HTML string
```js
let ast = parser.parse(str); // returns ast
```

#### serialize
Use `serialize(ast)` to serialize an AST back into it's relative string
```js
let ast = parser.serialize(ast); // returns string
```

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