{"name":"custom-event","version":"1.0.0","description":"Cross-browser `CustomEvent` constructor","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/webmodules/custom-event.git"},"keywords":["dom","browser","event","custom","customevent","constructor"],"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"license":"MIT","bugs":{"url":"https://github.com/webmodules/custom-event/issues"},"homepage":"https://github.com/webmodules/custom-event","devDependencies":{"zuul":"~1.16.3"},"gitHead":"18ae1444a92b5eb02edaecaf79a64070f4458873","_id":"custom-event@1.0.0","_shasum":"2e4628be19dc4b214b5c02630c5971e811618062","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"dist":{"shasum":"2e4628be19dc4b214b5c02630c5971e811618062","tarball":"http://registry-npm.ywwl.com/custom-event/download/custom-event-1.0.0.tgz","integrity":"sha512-6nOXX3UitrmdvSJWoVR2dlzhbX5bEUqmqsMUyx1ypCLZkHHkcuYtdpW3p94RGvcFkTV7DkLo+Ilbwnlwi8L+jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEqMmbl806QvoRlg/Ow7XpJEhkzmXWQDm0JwLW0XtM4oAiEAqRrZnGu3G2o3TrEyOrP2P+ZpxYSk3kp8llecHhxl+Fs="}],"size":2829,"noattachment":false,"key":"/custom-event/-/custom-event-1.0.0.tgz"},"directories":{},"readme":"custom-event\n============\n### Cross-browser `CustomEvent` constructor\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/custom-event.svg)](https://saucelabs.com/u/custom-event)\n\n[![Build Status](https://travis-ci.org/webmodules/custom-event.svg?branch=master)](https://travis-ci.org/webmodules/custom-event)\n\nhttps://developer.mozilla.org/en-US/docs/Web/API/CustomEvent.CustomEvent\n\n\nInstallation\n------------\n\n``` bash\n$ npm install custom-event\n```\n\n\nExample\n-------\n\n``` js\nvar CustomEvent = require('custom-event');\n\n// add an appropriate event listener\ntarget.addEventListener('cat', function(e) { process(e.detail) });\n\n// create and dispatch the event\nvar event = new CustomEvent('cat', {\n  detail: {\n    hazcheeseburger: true\n  }\n});\ntarget.dispatchEvent(event);\n```\n","publish_time":1420670003794,"_cnpm_publish_time":1420670003794,"dist-tags":{"latest":"1.0.1"}}