# dom-event-proxy

> DOM EventListener EventProxy

Latest version **1.0.4** (published 2019-02-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install dom-event-proxy
pnpm add dom-event-proxy
yarn add dom-event-proxy
bun add dom-event-proxy
```

## 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.4 |
| Published | 2019-02-26 |
| First published | 2019-02-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | vsiren |

## Links

- npm: https://www.npmjs.com/package/dom-event-proxy
- Repository: https://github.com/freezestanley/EventProxy
- Homepage: https://github.com/freezestanley/EventProxy#readme
- Issues: https://github.com/freezestanley/EventProxy/issues
- npm.io page: https://npm.io/package/dom-event-proxy

## Recent versions

- 1.0.4 (latest) — 2019-02-26
- 1.0.3 — 2019-02-26
- 1.0.1 — 2019-02-26
- 1.0.0 — 2019-02-26

## README

# EventProxy
DOM EventListener EventProxy

# proxy dom event

```
import EventProxy from 'dom-event-proxy'
const eventproxy = new EventProxy()
eventproxy.callback = function (ev) {
  debugger
  console.log('==============ev==================')
  console.log(ev)
}
document.addEventListener("DOMContentLoaded", function(event) {
  document.body.onclick = function (e) {
    console.log('========body onclick===============')
  }
  document.body.addEventListener('click', function (e) {
    console.log('========body addEventListener click===============')
  })
})
```

# const eventproxy = new EventProxy() 
> 页面最开始地方引入
> 当dom 元素被绑定事件后 会有__eventList 属性 里面存放 dom绑定事件列队

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