create DOM events for builtin event types


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
320Jun 23, 2015Mar 3, 2013Minified + gzip package size for @bendrucker/synthetic-dom-events in KB



Forked to work in Node without the need for global shims (https://github.com/defunctzombie/synthetic-dom-events/pull/8)

Build Status


var event = require('synthetic-dom-events');

// event just returns a correctly created dom event object
// you are responsible for emitting it
var ev = event('click', { button: 2 });

var element = document.createElement('button');

// or legacy IE
//element.fireEvent('on' + ev.type, ev);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.