etrig

1.0.0 • Public • Published

etrig

Super simple programmatic DOM event trigger helper for the browser.

Getting Started

npm install etrig

etrig is meant to be consumed in a CommonJS, Browserify environment:

var trigger = require('etrig');

// the following will trigger a load event on [data-button] 
trigger(document.querySelector('[data-button]'), 'load'); 

Todo

  • Tests
  • Event Details

/etrig/

    Package Sidebar

    Install

    npm i etrig

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • amongiants