# synthetic-dom-events

> create DOM events for builtin event types

Latest version **0.3.0** (published 2015-06-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install synthetic-dom-events
pnpm add synthetic-dom-events
yarn add synthetic-dom-events
bun add synthetic-dom-events
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2015-06-23 |
| First published | 2013-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Roman Shtylman |
| Maintainers | defunctzombie |

## Links

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

## Recent versions

- 0.3.0 (latest) — 2015-06-23
- 0.2.2 — 2014-04-23
- 0.2.1 — 2014-04-23
- 0.2.0 — 2014-03-31
- 0.1.1 — 2013-06-12
- 0.1.0 — 2013-03-09
- 0.0.0 — 2013-03-03

## README

# synthetic-dom-events

[![Build Status](https://travis-ci.org/defunctzombie/synthetic-dom-events.svg?branch=master)](https://travis-ci.org/defunctzombie/synthetic-dom-events)

## example

```js
var event = require('synthetic-dom-events');

// event just returns a correctly created dom event object
// you are responsible for emitting it
var ev = event('click', { button: 2 });

var element = document.createElement('button');
element.dispatchEvent(ev);

// or legacy IE
//element.fireEvent('on' + ev.type, ev);
```

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