# tidy-html5

> Tidy bad HTML markup

Latest version **0.1.1** (published 2014-12-08) · 0 weekly downloads

## Install

```sh
npm install tidy-html5
pnpm add tidy-html5
yarn add tidy-html5
bun add tidy-html5
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-12-08 |
| First published | 2014-12-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 27 |
| Author | Ophir LOJKINE |
| Maintainers | lovasoa |
| Keywords | html, tidy, clean, beautify, w3c, html5, format, dirty, markup, emscripten |

## Links

- npm: https://www.npmjs.com/package/tidy-html5
- Repository: https://github.com/lovasoa/tidy-html5
- Issues: https://github.com/lovasoa/tidy-html5/issues
- npm.io page: https://npm.io/package/tidy-html5

## 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.1.1 (latest) — 2014-12-08
- 0.1.0 — 2014-12-08

## README

# tidy-html5

Clean and format HTML markup.

## Usage
Use `require("tidy-html5").tidy_html5(html_string, options)`.

### Exemple
```javascript
var tidy = require("tidy-html5").tidy_html5

var result = tidy("<h1>I <3 bad markup</h2>", {"indent-spaces": 4});

console.log(result);
```

## List of options
Here is [the full list of options](http://w3c.github.io/tidy-html5/quickref.html).

## How it works
This is just [tidy-html5](https://github.com/w3c/tidy-html5) compiled from C
to javascript using [emscripten](https://github.com/kripken/emscripten/).

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