mini-listener

1.0.4 • Public • Published

Mini Listener

A minimal event manager

Instalation

npm install --save mini-listener

Usage

const listener = require('mini-listener');
//OR
import listener from 'mini-listener'

listener.add(type, fn, ctx = window, id = 'window')

Add an event listener on window by default

listener.remove(type, fn, id = 'window')

Remove an event listener on window by default

Dependents (0)

Package Sidebar

Install

npm i mini-listener

Weekly Downloads

1

Version

1.0.4

License

ISC

Last publish

Collaborators

  • jojoo