Miss any of our Open RFC calls?Watch the recordings here! »

simulate-event

1.4.0 • Public • Published

Simulate Event

NPM version NPM downloads Build status Test coverage

Simply trigger DOM events on any element.

Installation

npm install simulate-event --save-dev

Usage

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

License

MIT

Install

npm i simulate-event

DownloadsWeekly Downloads

2,436

Version

1.4.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar