Socket
Socket
Sign inDemoInstall

simulate-event

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simulate-event

A library for triggering DOM events.


Version published
Weekly downloads
12K
increased by15.5%
Maintainers
2
Weekly downloads
 
Created
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

Package last updated on 11 May 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc