event-attributes

1.0.1 • Public • Published

event-attributes NPM Version Bower Version Build Status

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 = require("event-attributes");
 
if (eventAttributes.html["onclick"] === true) {
    // is an html event attribute
}
 
if (eventAttributes.svg["onrepeat"] === true) {
    // is an svg event attribute
}

UMD/AMD/etc

Accessible via define() or window.eventAttributes.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    39
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    39
  • 1.0.0
    1

Package Sidebar

Install

npm i event-attributes

Weekly Downloads

18

Version

1.0.1

License

MIT

Last publish

Collaborators

  • stevenvachon