{"_id":"dom-event-types","_rev":"3301924","name":"dom-event-types","description":"DOM events data scraped from MDN","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"}],"time":{"modified":"2024-05-30T04:07:11.000Z","created":"2018-09-22T19:45:50.769Z","1.1.0":"2022-02-04T07:50:13.365Z","1.0.0":"2018-09-22T19:45:50.769Z"},"users":{},"author":{"name":"Edd Yerburgh"},"repository":{"type":"git","url":"git+https://github.com/eddyerburgh/dom-event-types.git"},"versions":{"1.1.0":{"name":"dom-event-types","version":"1.1.0","description":"DOM events data scraped from MDN","main":"index.js","types":"dom-event-types.ts","repository":{"type":"git","url":"git+https://github.com/eddyerburgh/dom-event-types.git"},"author":{"name":"Edd Yerburgh"},"license":"MIT","keywords":["DOM event data","DOM event interfaces","DOM events json"],"private":false,"scripts":{"generate":"node scrape","lint":"eslint '{,!(node_modules)/**/}*.js'","test":"jest"},"devDependencies":{"axios":"^0.18.0","cheerio":"^1.0.0-rc.2","eslint":"^5.6.0","eslint-config-prettier":"^3.1.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^7.0.1","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","husky":"^1.0.0-rc.14","jest":"^23.6.0","lint-staged":"^7.3.0","ora":"^3.0.0","prettier":"^1.14.3"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,json,css,md}":["prettier --write","git add"]},"gitHead":"98d2d19861d9bcb61f9510ba8ca26a35d7ef885c","bugs":{"url":"https://github.com/eddyerburgh/dom-event-types/issues"},"homepage":"https://github.com/eddyerburgh/dom-event-types#readme","_id":"dom-event-types@1.1.0","_nodeVersion":"17.4.0","_npmVersion":"8.3.1","dist":{"shasum":"120c1f92ddea7758db1ccee0a100a33c39f4701b","size":5897,"noattachment":false,"key":"/dom-event-types/-/dom-event-types-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-event-types/download/dom-event-types-1.1.0.tgz"},"_npmUser":{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"},"directories":{},"maintainers":[{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-event-types_1.1.0_1643961013155_0.9415161515298511"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-04T07:50:21.119Z","publish_time":1643961013365,"_cnpm_publish_time":1643961013365},"1.0.0":{"name":"dom-event-types","version":"1.0.0","description":"DOM events data scraped from MDN","main":"index.js","repository":{"type":"git","url":"git+https://github.com/eddyerburgh/dom-event-types.git"},"author":{"name":"Edd Yerburgh"},"license":"MIT","private":false,"scripts":{"lint":"eslint '{,!(node_modules)/**/}*.js'","test":"jest"},"devDependencies":{"axios":"^0.18.0","cheerio":"^1.0.0-rc.2","eslint":"^5.6.0","eslint-config-prettier":"^3.1.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-node":"^7.0.1","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","husky":"^1.0.0-rc.14","jest":"^23.6.0","lint-staged":"^7.3.0","ora":"^3.0.0","prettier":"^1.14.3"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,json,css,md}":["prettier --write","git add"]},"gitHead":"86b100c785c7f8eef181c5ec82a1907b12948fbb","bugs":{"url":"https://github.com/eddyerburgh/dom-event-types/issues"},"homepage":"https://github.com/eddyerburgh/dom-event-types#readme","_id":"dom-event-types@1.0.0","_npmVersion":"6.3.0","_nodeVersion":"8.11.4","_npmUser":{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"},"dist":{"shasum":"5830a0a29e1bf837fe50a70cd80a597232813cae","size":43370,"noattachment":false,"key":"/dom-event-types/-/dom-event-types-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-event-types/download/dom-event-types-1.0.0.tgz"},"maintainers":[{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-event-types_1.0.0_1537645550577_0.23723917125843408"},"_hasShrinkwrap":false,"publish_time":1537645550769,"_cnpm_publish_time":1537645550769}},"readme":"# dom-event-types\n\nAn object of DOM event types and their interfaces.\n\nData scraped from MDN.\n\n## Usage\n\n```shell\nnpm install --save-dev dom-event-types\n```\n\n```js\nconst eventInterfaces = require(\"dom-event-interfaces\");\n\nconsole.log(eventInterfaces);\n//=> { \"abort\": { \"eventInterface\": \"Event\", \"bubbles\": false, \"cancelable\": false }, ... }\n```\n\n## Shape\n\n```ts\n{\n  [eventType]: {\n    eventInterface: string\n    cancelable?: Boolean\n    bubbles?: Boolean\n  }\n}\n```\n\nIf `cancelable` or `bubbles` are undefined, it's because there is no entry for them on MDN.\n\n## Duplicates\n\nSome 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.\n\n| name    | event interfaces                                         | interface in `dom-event-types` |\n| ------- | -------------------------------------------------------- | ------------------------------ |\n| abort   | Event, ProgressEvent, UIEvent                            | Event                          |\n| end     | Event, SpeechSynthesisEvent                              | Event                          |\n| error   | ProgressEvent, Event, SpeechSynthesisErrorEvent, UIEvent | Event                          |\n| load    | UIEvent, ProgressEvent                                   | UIEvent                        |\n| message | ServiceWorkerMessageEvent, MessageEvent                  | MessageEvent                   |\n| error   | ProgressEvent, Event, SpeechSynthesisErrorEvent, UIEvent | Event                          |\n","_attachments":{},"homepage":"https://github.com/eddyerburgh/dom-event-types#readme","bugs":{"url":"https://github.com/eddyerburgh/dom-event-types/issues"},"license":"MIT"}