node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

simulate-event

A library for triggering DOM events.

Simulate Event

Simply trigger DOM events on any element.

npm install simulate-event --save-dev
// Simulate an event on an element 
simulateEvent.simulate(document.body, 'click');
 
// Generate an event for custom use 
var evt = simulateEvent.generate('click', { clientX: 10 });

MIT