add-dom-event-listener
Advanced tools
Comparing version 0.0.0 to 1.0.0
{ | ||
"name": "add-dom-event-listener", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"description": "add dom event listener. normalize ie and others", | ||
@@ -10,2 +10,6 @@ "keywords": [ | ||
], | ||
"main": "lib/index", | ||
"files": [ | ||
"lib" | ||
], | ||
"homepage": "http://github.com/yiminghe/add-dom-event-listener", | ||
@@ -24,8 +28,25 @@ "author": "", | ||
}, | ||
"scripts": { | ||
"build": "rc-tools run build", | ||
"gh-pages": "rc-tools run gh-pages", | ||
"start": "node --harmony node_modules/.bin/rc-server", | ||
"pub": "rc-tools run pub", | ||
"lint": "rc-tools run lint", | ||
"karma": "rc-tools run karma", | ||
"saucelabs": "node --harmony node_modules/.bin/rc-tools run saucelabs", | ||
"browser-test": "node --harmony node_modules/.bin/rc-tools run browser-test", | ||
"browser-test-cover": "node --harmony node_modules/.bin/rc-tools run browser-test-cover" | ||
}, | ||
"devDependencies": { | ||
"pre-commit": "1.x" | ||
"expect.js": "~0.3.1", | ||
"pre-commit": "1.x", | ||
"rc-server": "3.x", | ||
"rc-tools": "4.x" | ||
}, | ||
"precommit": [ | ||
"lint" | ||
] | ||
], | ||
"dependencies": { | ||
"object-assign": "4.x" | ||
} | ||
} |
# add-dom-event-listener | ||
add dom event listener. normalize ie and others | ||
add dom event listener. normalize ie and others. port from https://github.com/modulex/event-dom | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![Test coverage][coveralls-image]][coveralls-url] | ||
[![gemnasium deps][gemnasium-image]][gemnasium-url] | ||
[![node version][node-image]][node-url] | ||
[![npm download][download-image]][download-url] | ||
[npm-image]: http://img.shields.io/npm/v/add-dom-event-listener.svg?style=flat-square | ||
[npm-url]: http://npmjs.org/package/add-dom-event-listener | ||
[travis-image]: https://img.shields.io/travis/yiminghe/add-dom-event-listener.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/yiminghe/add-dom-event-listener | ||
[coveralls-image]: https://img.shields.io/coveralls/yiminghe/add-dom-event-listener.svg?style=flat-square | ||
[coveralls-url]: https://coveralls.io/r/yiminghe/add-dom-event-listener?branch=master | ||
[gemnasium-image]: http://img.shields.io/gemnasium/yiminghe/add-dom-event-listener.svg?style=flat-square | ||
[gemnasium-url]: https://gemnasium.com/yiminghe/add-dom-event-listener | ||
[node-image]: https://img.shields.io/badge/node.js-%3E=_4.0.0-green.svg?style=flat-square | ||
[node-url]: http://nodejs.org/download/ | ||
[download-image]: https://img.shields.io/npm/dm/add-dom-event-listener.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/add-dom-event-listener | ||
## examples | ||
```js | ||
var addEventListener = require('add-dom-event-listener'); | ||
var handler = addEventListener(document.body, 'click', function(e){ | ||
console.log(e.target); // works for ie | ||
console.log(e.nativeEvent); // native dom event | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
12780
5
306
0
33
1
4
+ Addedobject-assign@4.x
+ Addedobject-assign@4.1.1(transitive)