# inserted

> invoke a callback when a DOM element is inserted

Latest version **0.0.4** (published 2014-10-21) · 0 weekly downloads

## Install

```sh
npm install inserted
pnpm add inserted
yarn add inserted
bun add inserted
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2014-10-21 |
| First published | 2014-07-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Maintainers | tootallnate, coreh |
| Keywords | browser, dom, event, insertion |

## Links

- npm: https://www.npmjs.com/package/inserted
- Repository: https://github.com/component/inserted
- Issues: https://github.com/component/inserted/issues
- npm.io page: https://npm.io/package/inserted

## Dependencies (2)

- [within-document](https://npm.io/package/within-document.md) *
- [mutation-observer](https://npm.io/package/mutation-observer.md) *

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

- 0.0.4 (latest) — 2014-10-21
- 0.0.3 — 2014-07-14

## README

# inserted

  Invoke a callback when a DOM element is inserted.

## Installation

    $ component install component/inserted

## Example

```js
var inserted = require('inserted');
inserted(el, function(){
  console.log('element was inserted!');
});
```

## API

### inserted(el, fn)

  Invokes `fn` when `el` is inserted from the DOM.

### .interval

  The `setInterval` fallback uses `inserted.interval`, defaulting to 200ms.

# License

  MIT

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