# html-to-inferno

> Converting raw HTML into Inferno's VNodes.

Latest version **0.0.3** (published 2017-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-to-inferno
pnpm add html-to-inferno
yarn add html-to-inferno
bun add html-to-inferno
```

## 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.3 |
| Published | 2017-01-02 |
| First published | 2017-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Al Zohali |
| Maintainers | zohl |

## Links

- npm: https://www.npmjs.com/package/html-to-inferno
- npm.io page: https://npm.io/package/html-to-inferno

## Dependencies (4)

- [inferno](https://npm.io/package/inferno.md) ^0.7.27
- [htmlparser2](https://npm.io/package/htmlparser2.md) ^3.9.2
- [inferno-server](https://npm.io/package/inferno-server.md) ^0.7.27
- [inferno-create-element](https://npm.io/package/inferno-create-element.md) ^0.7.27

## Recent versions

- 0.0.3 (latest) — 2017-01-02
- 0.0.2 — 2017-01-02
- 0.0.1 — 2017-01-02

## README

# html-to-inferno

# [![Build Status](https://travis-ci.org/zohl/html-to-inferno.svg?branch=master)](https://travis-ci.org/zohl/html-to-inferno)

## Description
A small library to convert HTML into Inferno's VNodes.

## Status
The library is under development. API might vary a little bit.

## Example
```javascript
import createFromHTML from 'html-to-inferno';

createFromHTML('<div>hello!</div>'); // yields single VNode

createFromHTML(
  '<div>hello</div><div>world!</div>'
, {multipleNodes: true}
); // yields array of two VNodes

createFromHTML(
  '<div>hello</div>'
, {preprocess: n => ({name: 'p', props: n.props, children: n.children})
); // yields p-VNode instead of div-VNode
```

## See also
- [[Live demo](TODO)]
- [[Documentation](API.md)]

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