# html-tool

> parser html and generate html

Latest version **0.0.1** (published 2017-11-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install html-tool
pnpm add html-tool
yarn add html-tool
bun add html-tool
```

## 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.1 |
| Published | 2017-11-16 |
| First published | 2017-11-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | vic.wang |
| Maintainers | vicwang163 |
| Keywords | html, parser |

## Links

- npm: https://www.npmjs.com/package/html-tool
- Repository: https://github.com/vicwang163/html-tool
- Homepage: https://github.com/vicwang163/html-tool#readme
- Issues: https://github.com/vicwang163/html-tool/issues
- npm.io page: https://npm.io/package/html-tool

## Dependencies (1)

- [htmlparser2](https://npm.io/package/htmlparser2.md) ^3.9.2

## 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.1 (latest) — 2017-11-16

## README

# html-tool
It's used to parse html and generate html

## api

#### parse(str, opt)

属性 | 说明 | 类型
-----|-----|-----
str | html字符串 | String 
opt | 请查看htmlparser2的opt参数 | Object

example 
```js
parse('<html><body></body></html>')
```

#### traverse(node, cb)
traverse node tree

```js
let node = parse('<html><body></body></html>')
traverse(node, function () {
  // ..
})
```

#### generate(node)

```js
let node = parse('<html><body></body></html>')
traverse(node, function () {
  // ..
})
let str = generate(node)
```

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