# min-document

> A minimal DOM implementation

Latest version **2.19.2** (published 2025-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install min-document
pnpm add min-document
yarn add min-document
bun add min-document
```

## Health

**Score 53/100 (C)** — status: stable.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.19.2 |
| Published | 2025-11-11 |
| First published | 2013-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/min-document) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 53.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 112 |
| Author | Raynos |
| Maintainers | mattesch, raynos |

## Links

- npm: https://www.npmjs.com/package/min-document
- Repository: https://github.com/Raynos/min-document
- Issues: https://github.com/Raynos/min-document/issues
- npm.io page: https://npm.io/package/min-document

## Dependencies (1)

- [dom-walk](https://npm.io/package/dom-walk.md) ^0.1.0

## Recent versions

- 2.19.2 (latest) — 2025-11-11
- 2.19.1 — 2025-11-06
- 2.19.0 — 2016-09-21
- 2.18.1 — 2016-08-03
- 2.18.0 — 2016-01-15
- 2.17.0 — 2015-08-03
- 2.16.0 — 2015-06-17
- 2.14.2 — 2015-05-31
- 2.14.1 — 2015-05-11
- 2.14.0 — 2015-01-26
- 2.13.0 — 2015-01-17
- 2.12.0 — 2014-08-17
- 2.11.0 — 2014-08-17
- 2.10.0 — 2014-07-29
- 2.9.2 — 2014-07-23
- … 25 more at https://npm.io/package/min-document/versions

## README

# min-document

[![build status][1]][2] [![dependency status][3]][4]

<!-- [![browser support][5]][6] -->

A minimal DOM implementation

## Example

```js
var document = require("min-document")

var div = document.createElement("div")
div.className = "foo bar"

var span = document.createElement("span")
div.appendChild(span)
span.textContent = "Hello!"

/*  <div class="foo bar">
        <span>Hello!</span>
    </div>
*/
var html = String(div)
```

## Installation

`npm install min-document`

## Contributors

 - Raynos

## MIT Licenced

  [1]: https://secure.travis-ci.org/Raynos/min-document.png
  [2]: https://travis-ci.org/Raynos/min-document
  [3]: https://david-dm.org/Raynos/min-document.png
  [4]: https://david-dm.org/Raynos/min-document
  [5]: https://ci.testling.com/Raynos/min-document.png
  [6]: https://ci.testling.com/Raynos/min-document

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