tiny-event

1.0.0 • Public • Published

description

tiny event module without any dependencies

useage

npm install tiny-event --save
var evt = require('tiny-event')()
 
evt.on('name', function(data){
  console.log('something happen with data: ', JSON.stringify(data))
})
 
evt.fire('name', {ping: 'pong'})
 
evt.off('name')

Readme

Keywords

none

Package Sidebar

Install

npm i tiny-event

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • jserme