# dom-node-tostring

> Get the string form of a DOM node

Latest version **1.1.0** (published 2016-07-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install dom-node-tostring
pnpm add dom-node-tostring
yarn add dom-node-tostring
bun add dom-node-tostring
```

## 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 | 1.1.0 |
| Published | 2016-07-21 |
| First published | 2016-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Quentin Engles |
| Maintainers | hollowdoor |
| Keywords | DOM, tostring |

## Links

- npm: https://www.npmjs.com/package/dom-node-tostring
- npm.io page: https://npm.io/package/dom-node-tostring

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

- 1.1.0 (latest) — 2016-07-21
- 1.0.0 — 2016-07-19

## README

dom-node-tostring
=================

Install
-------

`npm install --save dom-node-tostring`

Usage
-----

```javascript
const nodeToString = require('dom-node-tostring');
console.log(nodeToString(document.querySelector('body')));
```

Or with es2015 modules:

```javascript
import nodeToString from 'dom-node-tostring';
console.log(nodeToString(document.querySelector('body')));
```

About
-----

Sometimes I want to get what would be equivalent to outerHTML without using outerHTML. This module solves that problem.

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