@ricardweii/js-event

1.0.8 • Public • Published

js-event

NPM version Build Status Downloads

a simple func tool

import { Event } from 'simple-event'

const event = new Event()

event.emit('test', 'test')

event.on('test', (params) => {
  console.log(params)
})

Package Sidebar

Install

npm i @ricardweii/js-event

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

14.1 kB

Total Files

7

Last publish

Collaborators

  • ricardweii