event-attributes
Map of HTML and SVG event attributes.
Installation
Type this at the command line:
npm install event-attributes --save-dev
Usage
Server/Browserify
var eventAttributes = ; if eventAttributeshtml"onclick" === true // is an html event attribute if eventAttributessvg"onrepeat" === true // is an svg event attribute
UMD/AMD/etc
Accessible via define()
or window.eventAttributes
.