Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

event-attributes

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

event-attributes

Map of HTML and SVG event attributes.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
156
90.24%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

attributes

FAQs

Package last updated on 28 Sep 2015

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