Socket
Socket
Sign inDemoInstall

simulate-event

Package Overview
Dependencies
1
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simulate-event

A library for triggering DOM events.


Version published
Weekly downloads
12K
decreased by-18.82%
Maintainers
2
Install size
21.9 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 01 Jul 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc