🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

dom-event-types

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-event-types

DOM events data scraped from MDN

1.1.0
latest
Source
npm
Version published
Maintainers
1
Created
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

DOM event data

FAQs

Package last updated on 04 Feb 2022

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