# @mojule/dom-node-to-html-string

> Get an HTML string from any DOM node

Latest version **0.1.2** (published 2018-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mojule/dom-node-to-html-string
pnpm add @mojule/dom-node-to-html-string
yarn add @mojule/dom-node-to-html-string
bun add @mojule/dom-node-to-html-string
```

## 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.1.2 |
| Published | 2018-05-08 |
| First published | 2018-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nik Coughlin |
| Maintainers | andybell, nrkn |

## Links

- npm: https://www.npmjs.com/package/@mojule/dom-node-to-html-string
- Repository: https://github.com/mojule/dom-node-to-html-string
- Homepage: https://github.com/mojule/dom-node-to-html-string#readme
- Issues: https://github.com/mojule/dom-node-to-html-string/issues
- npm.io page: https://npm.io/package/@mojule/dom-node-to-html-string

## Dependencies (2)

- [@mojule/mapper](https://npm.io/package/@mojule/mapper.md) ^0.1.1
- [@mojule/dom-node-predicates](https://npm.io/package/@mojule/dom-node-predicates.md) ^0.1.4

## Recent versions

- 0.1.2 (latest) — 2018-05-08
- 0.1.1 — 2018-05-08
- 0.1.0 — 2018-02-26

## README

# dom-node-to-html-string

Small utility to get an HTML string from any DOM node, because different node
types have different ways of turning themselves into HTML strings, eg there is
no innerHTML on DocumentFragment, Text and Comment nodes use `.nodeValue` etc

`npm install @mojule/dom-node-to-html-string`

```javascript
const HtmlString = require( '@mojule/dom-node-to-html-string' )

// ... code to get node here

console.log( HtmlString( node ) )
```

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