# dom-helper

> A super fast DOM helper lib

Latest version **1.0.0** (published 2014-09-26) · Apache 2 license · 0 weekly downloads

## Install

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

## 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.0.0 |
| Published | 2014-09-26 |
| First published | 2014-09-26 |
| Weekly downloads | 0 |
| License | Apache 2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | greenify |
| Maintainers | greenify |
| Keywords | dom, helper, insertlater, removeall, removetoinsert |

## Links

- npm: https://www.npmjs.com/package/dom-helper
- Repository: github.com/greenify/dom-helper
- Homepage: https://github.com/greenify/dom-helper
- Issues: https://github.com/greenify/dom-helper/issues
- npm.io page: https://npm.io/package/dom-helper

## 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.0.0 (latest) — 2014-09-26

## README

dom-helper
===========

A simple util lib for fast DOM operations.

### removeToInsertLater(element)

Remove an element and provide a function that inserts it into its original position
Recommended by the [Google JS speed guide](https://developers.google.com/speed/articles/javascript-dom)

@param __element__ {Element} The element to be temporarily removed
@return __callback__ {Function} A function that inserts the element into its original position

### removeAllChilds(element)

[fastest](http://jsperf.com/innerhtml-vs-removechild/15) possible way to destroy all sub nodes (aka childs)

@param __element__ {DOM Node} The element for which all childs should be removed

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