{"_id":"event-target-polyfill","_rev":"4330771","name":"event-target-polyfill","description":"An EventTarget Polyfill","dist-tags":{"latest":"0.0.4"},"maintainers":[{"name":"blesh","email":""}],"time":{"modified":"2026-04-07T23:54:25.000Z","created":"2020-07-14T20:18:18.458Z","0.0.4":"2023-11-06T22:48:40.984Z","0.0.3":"2021-03-28T20:34:20.494Z","0.0.2":"2020-07-15T15:44:39.513Z","0.0.1":"2020-07-14T20:18:18.458Z"},"users":{},"author":{"name":"Ben Lesh","email":"ben@benlesh.com"},"repository":{"type":"git","url":"git+https://github.com/benlesh/event-target-polyfill.git"},"versions":{"0.0.4":{"name":"event-target-polyfill","version":"0.0.4","description":"An EventTarget Polyfill","main":"index.js","exports":{".":"./index.js"},"dependencies":{},"devDependencies":{},"scripts":{"test":"node ./test.js"},"repository":{"type":"git","url":"git+https://github.com/benlesh/event-target-polyfill.git"},"keywords":["EventTarget","Polyfill"],"author":{"name":"Ben Lesh","email":"ben@benlesh.com"},"license":"MIT","bugs":{"url":"https://github.com/benlesh/event-target-polyfill/issues"},"homepage":"https://github.com/benlesh/event-target-polyfill#readme","gitHead":"1d7773ad3b4cad33874633c91af5787d73136ac4","_id":"event-target-polyfill@0.0.4","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"shasum":"060ee66e85aaedc76b6fa66079782dcc11cba496","size":4558,"noattachment":false,"key":"/event-target-polyfill/-/event-target-polyfill-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-target-polyfill/download/event-target-polyfill-0.0.4.tgz"},"_npmUser":{"name":"blesh","email":"ben@benlesh.com"},"directories":{},"maintainers":[{"name":"blesh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/event-target-polyfill_0.0.4_1699310920806_0.3648107310561943"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-06T22:48:40.984Z","publish_time":1699310920984,"_source_registry_name":"default","_cnpm_publish_time":1699310920984},"0.0.3":{"name":"event-target-polyfill","version":"0.0.3","description":"An EventTarget Polyfill","main":"index.js","exports":{".":"./index.js"},"dependencies":{},"devDependencies":{},"scripts":{"test":"node ./test.js"},"repository":{"type":"git","url":"git+https://github.com/benlesh/event-target-polyfill.git"},"keywords":["EventTarget","Polyfill"],"author":{"name":"Ben Lesh","email":"ben@benlesh.com"},"license":"MIT","bugs":{"url":"https://github.com/benlesh/event-target-polyfill/issues"},"homepage":"https://github.com/benlesh/event-target-polyfill#readme","gitHead":"4d4f2b626f5870ab46e802b8d7d71a2bb700ec58","_id":"event-target-polyfill@0.0.3","_nodeVersion":"14.15.4","_npmVersion":"7.7.0","dist":{"shasum":"ed373295f3b257774b5d75afb2599331d9f3406c","size":4528,"noattachment":false,"key":"/event-target-polyfill/-/event-target-polyfill-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-target-polyfill/download/event-target-polyfill-0.0.3.tgz"},"_npmUser":{"name":"blesh","email":"ben@benlesh.com"},"directories":{},"maintainers":[{"name":"blesh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/event-target-polyfill_0.0.3_1616963660371_0.07175020204624905"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T09:02:45.623Z","publish_time":1616963660494,"_cnpm_publish_time":1616963660494},"0.0.2":{"name":"event-target-polyfill","version":"0.0.2","description":"An EventTarget Polyfill","main":"index.js","exports":{".":"./index.js"},"dependencies":{},"devDependencies":{},"scripts":{"test":"node ./test.js"},"repository":{"type":"git","url":"git+https://github.com/benlesh/event-target-polyfill.git"},"keywords":["EventTarget","Polyfill"],"author":{"name":"Ben Lesh","email":"ben@benlesh.com"},"license":"MIT","bugs":{"url":"https://github.com/benlesh/event-target-polyfill/issues"},"homepage":"https://github.com/benlesh/event-target-polyfill#readme","gitHead":"fcd88ed809b207d2cd9e7b81cd75992bc5afaaee","_id":"event-target-polyfill@0.0.2","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"shasum":"47e35ad6283aaca2f0148772d9ceedc30fd58d16","size":3773,"noattachment":false,"key":"/event-target-polyfill/-/event-target-polyfill-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-target-polyfill/download/event-target-polyfill-0.0.2.tgz"},"maintainers":[{"name":"blesh","email":""}],"_npmUser":{"name":"blesh","email":"ben@benlesh.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/event-target-polyfill_0.0.2_1594827879409_0.1138836533974723"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T09:02:44.699Z","publish_time":1594827879513,"_cnpm_publish_time":1594827879513},"0.0.1":{"name":"event-target-polyfill","version":"0.0.1","description":"An EventTarget Polyfill","type":"module","main":"index.js","exports":{".":"./index.js"},"dependencies":{},"devDependencies":{},"scripts":{"test":"node ./test.js"},"repository":{"type":"git","url":"git+https://github.com/benlesh/event-target-polyfill.git"},"keywords":["EventTarget","Polyfill"],"author":{"name":"Ben Lesh","email":"ben@benlesh.com"},"license":"MIT","bugs":{"url":"https://github.com/benlesh/event-target-polyfill/issues"},"homepage":"https://github.com/benlesh/event-target-polyfill#readme","gitHead":"3902db64625ec1595c4a20421d687611f8e3577d","_id":"event-target-polyfill@0.0.1","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"shasum":"da3bd75fd593b67de17e941745a5196fe0ef6806","size":3779,"noattachment":false,"key":"/event-target-polyfill/-/event-target-polyfill-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/event-target-polyfill/download/event-target-polyfill-0.0.1.tgz"},"maintainers":[{"name":"blesh","email":""}],"_npmUser":{"name":"blesh","email":"ben@benlesh.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/event-target-polyfill_0.0.1_1594757898329_0.04628982689308603"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T09:02:43.787Z","publish_time":1594757898458,"_cnpm_publish_time":1594757898458}},"readme":"[![npm version](https://badge.fury.io/js/event-target-polyfill.svg)](https://badge.fury.io/js/event-target-polyfill)\n![Node.js CI](https://github.com/benlesh/event-target-polyfill/workflows/Node.js%20CI/badge.svg)\n\n# event-target-polyfill\n\nA polyfill for `EventTarget` (and `Event`), meant to run in older version of node or possibly IE 11, that has the most accurate set of characteristics of `EventTarget` that can be provided.\n\nIf you find this implementation can be improved, please submit a PR and ping me [on Twitter via DM](https://twitter.com/benlesh).\n\n**NOTE: If you are using Node 14 and higher, [EventTarget is available directly](https://nodejs.org/api/events.html#events_eventtarget_and_event_api) via experimental features**\nMDN: [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget)\n\n## Usage\n\n```\nimport 'event-target-polyfill';\n\nconst et = new EventTarget();\n\net.addEventListener('test', () => console.log('hit!'));\n\net.dispatchEvent(new Event('test'));\n```\n\n## Development\n\nThis library has no dependencies. Even development dependencies. To test just run `npm test`. It runs a script, and if it finishes without error, the tests pass.\n\n","_attachments":{},"homepage":"https://github.com/benlesh/event-target-polyfill#readme","bugs":{"url":"https://github.com/benlesh/event-target-polyfill/issues"},"license":"MIT"}