JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 28367
  • Score
    100M100P100Q143201F
  • License MIT

A library for triggering DOM events.

Package Exports

  • simulate-event

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simulate-event) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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