# dom-patch

> Patch dom nodes

Latest version **2.1.7** (published 2017-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install dom-patch
pnpm add dom-patch
yarn add dom-patch
bun add dom-patch
```

## 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.1.7 |
| Published | 2017-12-04 |
| First published | 2015-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bitovi |
| Maintainers | chasen, matthewp |
| Keywords | CanJS, diffing |

## Links

- npm: https://www.npmjs.com/package/dom-patch
- Repository: https://github.com/canjs/dom-patch
- Homepage: https://github.com/canjs/dom-patch#readme
- Issues: https://github.com/canjs/dom-patch/issues
- npm.io page: https://npm.io/package/dom-patch

## Dependencies (2)

- [node-route](https://npm.io/package/node-route.md) ^1.2.0
- [can-globals](https://npm.io/package/can-globals.md) <2.0.0

## Recent versions

- 2.1.7 (latest) — 2017-12-04
- 2.0.0-alpha.2 (alpha) — 2017-04-24
- 2.2.0 — 2017-10-26
- 2.1.6 — 2017-10-18
- 2.1.5 — 2017-08-03
- 2.1.4 — 2017-07-11
- 2.1.3 — 2017-07-10
- 2.1.2 — 2017-07-07
- 2.1.1 — 2017-07-05
- 2.1.0 — 2017-07-03
- 2.0.4 — 2017-06-30
- 2.0.3 — 2017-06-29
- 2.0.2 — 2017-06-28
- 2.0.1 — 2017-06-07
- 2.0.0 — 2017-06-05
- … 18 more at https://npm.io/package/dom-patch/versions

## README

# dom-patch

[![Build Status](https://travis-ci.org/canjs/dom-patch.svg?branch=master)](https://travis-ci.org/canjs/dom-patch)
[![npm version](https://badge.fury.io/js/dom-patch.svg)](http://badge.fury.io/js/dom-patch)

A library for patching DOMs. Binding to a document will return patches as they happen, which can be re-applied to another document.

This is useful when syncing DOMs, such as with web worker rendering.

## Usage

```js
var patch = require("dom-patch");
var apply = require("dom-patch/apply");

patch(document, function(patches){

	apply(otherDocument, patches);

});
```

## License

MIT

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