dom-event

v0.0.1-security
This package name is not currently in use, but was formerly occupied by a popular package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.

dom-event

Add/remove DOM events

Install

$ npm install dom-event

Usage

var on = require('dom-event')
var off = on.off

on(document.body, 'click', hello) // adds the event listener
off(document.body, 'click', hello) // removes

function hello () {
  console.log('hello!')
}

Metadata

  • ISC
  • Whatever
  • Unknown
  • released 3/23/2016

Downloads

Maintainers