# @weddell/vdom-virtualize

> Virtualize any DOM node and turn it into a virtual-dom node.

Latest version **2.0.1** (published 2019-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @weddell/vdom-virtualize
pnpm add @weddell/vdom-virtualize
yarn add @weddell/vdom-virtualize
bun add @weddell/vdom-virtualize
```

## 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.1 |
| Published | 2019-01-27 |
| First published | 2019-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 130 |
| Author | Marcel Klehr |
| Maintainers | grygabrielphon |
| Keywords | virtual-dom, vdom, virtualize |

## Links

- npm: https://www.npmjs.com/package/@weddell/vdom-virtualize
- Repository: https://github.com/marcelklehr/vdom-virtualize
- Issues: https://github.com/marcelklehr/vdom-virtualize/issues
- npm.io page: https://npm.io/package/@weddell/vdom-virtualize

## Recent versions

- 2.0.1 (latest) — 2019-01-27

## README

# vdom-virtualize

[![Sauce Test Status](https://saucelabs.com/browser-matrix/vdom-virtualize.svg)](https://saucelabs.com/u/vdom-virtualize)

**New in v2.0:** removed support for virtualize.fromHTML -- doing this right and supporting all platforms is a job for [another library](https://github.com/TimBeyer/html-to-vdom).

**New in v1.0:** vdom-virtualize now supports comments and does now use peerDependencies to depend on virtual-dom.

## API

### virtualize(node:DOMNode)
 * node `{DOMNode}`

 * returns `{VNode}`: A virtual-dom tree

### virtualize.fromHTML(html:String)
 * html `{String}`

 * returns `{VNode}`: A virtual-dom tree

Turn a DOMNode into a [virtual-dom](https://github.com/Matt-Esch/virtual-dom) node.

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