# @starptech/prettyhtml-hast-to-html

> Hast to html converter

Latest version **0.10.0** (published 2019-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @starptech/prettyhtml-hast-to-html
pnpm add @starptech/prettyhtml-hast-to-html
yarn add @starptech/prettyhtml-hast-to-html
bun add @starptech/prettyhtml-hast-to-html
```

## 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.10.0 |
| Published | 2019-06-21 |
| First published | 2018-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 23.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 286 |
| Author | Dustin Deus |
| Maintainers | starptech |
| Keywords | prettyhtml, formatter, html5, stringify |

## Links

- npm: https://www.npmjs.com/package/@starptech/prettyhtml-hast-to-html
- Repository: https://github.com/StarpTech/prettyhtml
- Homepage: https://github.com/StarpTech/prettyhtml#readme
- Issues: https://github.com/StarpTech/prettyhtml/issues
- npm.io page: https://npm.io/package/@starptech/prettyhtml-hast-to-html

## Dependencies (12)

- [xtend](https://npm.io/package/xtend.md) ^4.0.1
- [ccount](https://npm.io/package/ccount.md) ^1.0.4
- [repeat-string](https://npm.io/package/repeat-string.md) ^1.6.1
- [unist-util-is](https://npm.io/package/unist-util-is.md) ^2.1.3
- [html-void-elements](https://npm.io/package/html-void-elements.md) ^1.0.4
- [stringify-entities](https://npm.io/package/stringify-entities.md) ^2.0.0
- [hast-util-is-element](https://npm.io/package/hast-util-is-element.md) ^1.0.3
- [hast-util-whitespace](https://npm.io/package/hast-util-whitespace.md) ^1.0.3
- [property-information](https://npm.io/package/property-information.md) ^5.1.0
- [comma-separated-tokens](https://npm.io/package/comma-separated-tokens.md) ^1.0.7
- [space-separated-tokens](https://npm.io/package/space-separated-tokens.md) ^1.1.4
- [html-whitespace-sensitive-tag-names](https://npm.io/package/html-whitespace-sensitive-tag-names.md) ^1.0.1

## Recent versions

- 0.10.0 (latest) — 2019-06-21
- 0.9.0 — 2019-04-28
- 0.8.17 — 2019-04-07
- 0.8.10 — 2018-12-09
- 0.8.7 — 2018-12-06
- 0.8.1 — 2018-11-12
- 0.8.0 — 2018-11-11
- 0.7.0 — 2018-11-10
- 0.6.0 — 2018-11-08
- 0.5.3 — 2018-11-08
- 0.5.2 — 2018-11-06
- 0.5.1 — 2018-10-30
- 0.5.0 — 2018-10-28
- 0.4.2 — 2018-10-27
- 0.4.1 — 2018-10-26
- … 58 more at https://npm.io/package/@starptech/prettyhtml-hast-to-html/versions

## README

# @starptech/prettyhtml-hast-to-html

[**Hast**](https://github.com/syntax-tree/hast) to HTML converter

## Installation

```
npm install --save @starptech/prettyhtml-hast-to-html
```

## Api

###### `node.data.ignore`

When this property `true` the node is skipped for attribute collapsing.

###### `node.data.preserveAttrWrapping`

When this property `true` the node is skipped for attribute collapsing.

## Caveats

The implementation is a modified version of [hast-util-to-html](https://github.com/syntax-tree/hast-util-to-html).

- Known html attributes aren't handled case-sensitively
- Consider `printWidth`
- Don't encode attribute values
- Don't escape special characters in text
- Don't omit value behind boolean attributes

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