This package has been deprecated

Author message:

Use bianco.events instead

bianco-events

0.0.2 • Public • Published

bianco-events

Build Status NPM version NPM downloads MIT License

Modern DOM events helpers written in es2015

This script will not be transpiled and it is only thought to be part of your build chain.

Usage

import { add, remove, once } from 'bianco-events'
 
add(node/s, 'click mouseenter', function(e) {
  console.log('tadaaa!')
})

API

  • add(node/s, events, callback) add a listener for one or more events space separated
  • remove(node/s, events, callback) remove a listener for one or more events space separated
  • once(node/s, events, callback) add a listener for one or more events space separated that will be triggered only once

Package Sidebar

Install

npm i bianco-events

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • gianlucaguarini