update
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# mutter
|
||||
|
||||
Mutter is a super-simple event emitter.
|
||||
|
||||
## Installation
|
||||
|
||||
$ npm install mutter --save
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var evt = require('mutter');
|
||||
|
||||
function foo(val) {
|
||||
// ...
|
||||
}
|
||||
|
||||
evt.on('foo', foo);
|
||||
|
||||
evt.one('foo', 'bar'); // emit one
|
||||
evt.emit('foo', 'baz'); // emit all
|
||||
|
||||
evt.off('foo', foo)
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"all": true,
|
||||
"check-coverage": false,
|
||||
"reporter": ["text-summary", "text", "html", "json"],
|
||||
"exclude": [
|
||||
"coverage",
|
||||
"test"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user