mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-12-27 07:33:51 +01:00
25 lines
529 B
Markdown
25 lines
529 B
Markdown
# events [](https://travis-ci.org/Gozala/events)
|
|
|
|
Algolia's fork of Node's event emitter for all engines.
|
|
|
|
Specifics:
|
|
- v1.1.1-based, as it's much smaller and we don't use the newer features
|
|
- builtin type-definitions
|
|
- better interop with ESM, while still being cjs
|
|
|
|
## Install
|
|
|
|
```
|
|
npm install events
|
|
```
|
|
|
|
## Require
|
|
|
|
```javascript
|
|
var EventEmitter = require('events');
|
|
```
|
|
|
|
## Usage
|
|
|
|
See the [node.js event emitter docs](http://nodejs.org/api/events.html)
|