Socket
Socket
Sign inDemoInstall

dom-event-types

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dom-event-types

DOM events data scraped from MDN


Version published
Weekly downloads
562K
decreased by-22.59%
Maintainers
1
Install size
40.7 kB
Created
Weekly downloads
 

Changelog

Source

1.1.0

Features

  • Add TS types (ee915aa )

Readme

Source

dom-event-types

An object of DOM event types and their interfaces.

Data scraped from MDN.

Usage

npm install --save-dev dom-event-types
const eventInterfaces = require("dom-event-interfaces");

console.log(eventInterfaces);
//=> { "abort": { "eventInterface": "Event", "bubbles": false, "cancelable": false }, ... }

Shape

{
  [eventType]: {
    eventInterface: string
    cancelable: Boolean
    bubbles: Boolean
  }
}

If cancelable or bubbles are undefined, it's because there is no entry for them on MDN.

Duplicates

Some events have duplicate interfaces. To make this package easier to use, duplicates have been removed. You can see a list of events with duplicate interfaces, and the interface that's exported in this project.

nameevent interfacesinterface in dom-event-types
abortEvent, ProgressEvent, UIEventEvent
endEvent, SpeechSynthesisEventEvent
errorProgressEvent, Event, SpeechSynthesisErrorEvent, UIEventEvent
loadUIEvent, ProgressEventUIEvent
messageServiceWorkerMessageEvent, MessageEventMessageEvent
errorProgressEvent, Event, SpeechSynthesisErrorEvent, UIEventEvent

Keywords

FAQs

Last updated on 04 Feb 2022

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