mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 18:20:08 +08:00
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
26 lines
281 B
Markdown
26 lines
281 B
Markdown
# bare-events
|
|
|
|
Event emitters for JavaScript.
|
|
|
|
```
|
|
npm install bare-events
|
|
```
|
|
|
|
## Usage
|
|
|
|
``` js
|
|
const EventEmitter = require('bare-events')
|
|
|
|
const e = new EventEmitter()
|
|
|
|
e.on('hello', function (data) {
|
|
console.log(data)
|
|
})
|
|
|
|
e.emit('hello', 'world')
|
|
```
|
|
|
|
## License
|
|
|
|
Apache-2.0
|