{"_id":"events-okam","_rev":"3463232","name":"events-okam","description":"Node's event emitter for all engines.","dist-tags":{"latest":"3.3.0"},"maintainers":[{"name":"sorrycc","email":""}],"time":{"modified":"2024-08-27T19:36:31.000Z","created":"2023-07-24T06:50:36.615Z","3.3.0":"2023-07-24T06:50:36.615Z"},"users":{},"author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"repository":{"type":"git","url":"git://github.com/Gozala/events.git","web":"https://github.com/Gozala/events"},"versions":{"3.3.0":{"name":"events-okam","version":"3.3.0","description":"Node's event emitter for all engines.","keywords":["events","eventEmitter","eventDispatcher","listeners"],"author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"repository":{"type":"git","url":"git://github.com/Gozala/events.git","web":"https://github.com/Gozala/events"},"bugs":{"url":"http://github.com/Gozala/events/issues/"},"main":"./events.js","engines":{"node":">=0.8.x"},"devDependencies":{"airtap":"^1.0.0","functions-have-names":"^1.2.1","has":"^1.0.3","has-symbols":"^1.0.1","isarray":"^2.0.5","tape":"^5.0.0"},"scripts":{"test":"node tests/index.js","test:browsers":"airtap -- tests/index.js"},"license":"MIT","homepage":"https://github.com/Gozala/events#readme","_id":"events-okam@3.3.0","_nodeVersion":"18.14.0","_npmVersion":"9.6.5","dist":{"shasum":"66819139831f3c8b2e1e07fc8d33225673d87acb","size":16380,"noattachment":false,"key":"/events-okam/-/events-okam-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/events-okam/download/events-okam-3.3.0.tgz"},"_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"directories":{},"maintainers":[{"name":"sorrycc","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/events-okam_3.3.0_1690181436440_0.5785936114087546"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-24T06:50:36.615Z","publish_time":1690181436615,"_source_registry_name":"default","_cnpm_publish_time":1690181436615}},"readme":"# events [![Build Status](https://travis-ci.org/Gozala/events.png?branch=master)](https://travis-ci.org/Gozala/events)\n\n> Node's event emitter for all engines.\n\nThis implements the Node.js [`events`][node.js docs] module for environments that do not have it, like browsers.\n\n> `events` currently matches the **Node.js 11.13.0** API.\n\nNote that the `events` module uses ES5 features. If you need to support very old browsers like IE8, use a shim like [`es5-shim`](https://www.npmjs.com/package/es5-shim). You need both the shim and the sham versions of `es5-shim`.\n\nThis module is maintained, but only by very few people. If you'd like to help, let us know in the [Maintainer Needed](https://github.com/Gozala/events/issues/43) issue!\n\n## Install\n\nYou usually do not have to install `events` yourself! If your code runs in Node.js, `events` is built in. If your code runs in the browser, bundlers like [browserify](https://github.com/browserify/browserify) or [webpack](https://github.com/webpack/webpack) also include the `events` module.\n\nBut if none of those apply, with npm do:\n\n```\nnpm install events\n```\n\n## Usage\n\n```javascript\nvar EventEmitter = require('events')\n\nvar ee = new EventEmitter()\nee.on('message', function (text) {\n  console.log(text)\n})\nee.emit('message', 'hello world')\n```\n\n## API\n\nSee the [Node.js EventEmitter docs][node.js docs]. `events` currently matches the Node.js 11.13.0 API.\n\n## Contributing\n\nPRs are very welcome! The main way to contribute to `events` is by porting features, bugfixes and tests from Node.js. Ideally, code contributions to this module are copy-pasted from Node.js and transpiled to ES5, rather than reimplemented from scratch. Matching the Node.js code as closely as possible makes maintenance simpler when new changes land in Node.js.\nThis module intends to provide exactly the same API as Node.js, so features that are not available in the core `events` module will not be accepted. Feature requests should instead be directed at [nodejs/node](https://github.com/nodejs/node) and will be added to this module once they are implemented in Node.js.\n\nIf there is a difference in behaviour between Node.js's `events` module and this module, please open an issue!\n\n## License\n\n[MIT](./LICENSE)\n\n[node.js docs]: https://nodejs.org/dist/v11.13.0/docs/api/events.html\n","_attachments":{},"homepage":"https://github.com/Gozala/events#readme","bugs":{"url":"http://github.com/Gozala/events/issues/"},"license":"MIT"}