# parse-html-df

> string -> documentFragment

Latest version **2.0.0** (published 2018-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-html-df
pnpm add parse-html-df
yarn add parse-html-df
bun add parse-html-df
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-07-31 |
| First published | 2016-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | honeo |
| Maintainers | honeo |
| Keywords | parse, html, documentfragument |

## Links

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

## 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

- 2.0.0 (latest) — 2018-07-31
- 1.0.2 — 2018-07-04
- 1.0.1 — 2016-04-18
- 1.0.0 — 2016-04-18

## README

# parse-html-df
* [honeo/parse-html-df](https://github.com/honeo/parse-html-df)  
* [parse-html-df](https://www.npmjs.com/package/parse-html-df)


## なにこれ
HTML string -> documentFragment


## 使い方
```sh
$ npm i parse-html-df
```
```js
import parseHTML from 'parse-html-df';

// or dynamic-import, CDN
const {default: parseHTML} = await import('https://cdn.rawgit.com/honeo/parse-html-df/master/index.mjs');


const df = parseHTML('hoge<div class="fuga"><span class="piyo">foobar</span></div>');
document.body.append(df);
```
```html
<body>
	...
	"hoge"
	<div class="fuga">
		<span class="piyo">foobar</span>
	</div>
<body>
```

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