# nv-facutil-event

> nv-facutil-event ================

Latest version **1.0.0** (published 2021-02-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install nv-facutil-event
pnpm add nv-facutil-event
yarn add nv-facutil-event
bun add nv-facutil-event
```

## 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 | 2021-02-14 |
| First published | 2021-02-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |

## Links

- npm: https://www.npmjs.com/package/nv-facutil-event
- npm.io page: https://npm.io/package/nv-facutil-event

## Dependencies (1)

- [nv-facutil-name](https://npm.io/package/nv-facutil-name.md) ^1.0.3

## Recent versions

- 1.0.0 (latest) — 2021-02-14

## README

nv-facutil-event
================


install
=======
- npm install nv-facutil-event


USAGE
=====

    const fac_event = require("nv-facutil-event")
    var ET = fac_event.creat_event_target_cls("Guard-a")
    var et = new ET();
    et.addEventListener("foo", function(e) {console.log(e.data)})
    et.addEventListener("bar", function(e) {console.log(e.data)})
    > et.ls()
    Map(2) {
      'foo' => [Function (anonymous)],
      'bar' => [Function (anonymous)]
    }
    >
    > var efoo =  et.dispatch("foo",{detail:100})
    { detail: 100 }
    > var ebar = et.dispatch("bar",{detail:200})
    { detail: 200 }
    >


    var E = fac_event.creat_event_cls("click")
    var e = new E('foo',[1,2,3,4])
    > e
    Click {
      type: 'foo',
      defaultPrevented: false,
      cancelable: false,
      timeStamp: 427991.7643392086
    }
    > e.data
    [ 1, 2, 3, 4 ]
    >
    > et.dispatchEvent(e)
    [ 1, 2, 3, 4 ]
    true
    >


APIS
====

- creat\_event\_cls(name)
- E
- creat\_event\_target\_cls(name)
- ET



LICENSE
=======
- ISC

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