{"_id":"microee","_rev":"27-4d857810d890535fbda9e7dc163dc72c","name":"microee","description":"A tiny EventEmitter-like client and server side library","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"microee","description":"A tiny EventEmitter-like client and server side library","version":"0.0.1","author":{"name":"Mikito Takada","email":"mixu@mixu.net","url":"http://mixu.net/"},"keywords":["event","events","eventemitter","emitter"],"repository":{"type":"git","url":"git://github.com/mixu/microee"},"main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --ui exports --reporter spec --bail ./test/microee.test.js"},"devDependencies":{"mocha":"*"},"_id":"microee@0.0.1","dist":{"shasum":"031277d0278165ce9b63deb633677772d9a05141","tarball":"https://registry.npmjs.org/microee/-/microee-0.0.1.tgz","integrity":"sha512-pw6yFGy7nWCKtD1H6B4/gYplMMsW+qBGgpYNXAh/fgblYGBppHJJBGXcWqoVnv5WfeWItAqwsdOXSIkIOJi5hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgu//1sDcEgi2TQMEQ4r5tcY3VAez+pI5HW/Xwv73cNQIgIhaoOnYlskxNOjP5sRx7OYb9dTSHeih0y9U6SlgeK4E="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"mixu","email":"mixu@mixu.net"},"maintainers":[{"name":"mixu","email":"mixu@mixu.net"}],"directories":{}},"0.0.2":{"name":"microee","description":"A tiny EventEmitter-like client and server side library","version":"0.0.2","author":{"name":"Mikito Takada","email":"mixu@mixu.net","url":"http://mixu.net/"},"keywords":["event","events","eventemitter","emitter"],"repository":{"type":"git","url":"git://github.com/mixu/microee"},"main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --ui exports --reporter spec --bail ./test/microee.test.js"},"devDependencies":{"mocha":"*"},"_id":"microee@0.0.2","dist":{"shasum":"72e80d477075e5e799470f5defea96d1dd121587","tarball":"https://registry.npmjs.org/microee/-/microee-0.0.2.tgz","integrity":"sha512-YtNUgIojy1brPWluzA/lE+vf21Tf4qgfs9vqbgY0tFZTsLqKkc+P/UHjf1UrLjB0RSqmPbNm3dihC/HvkqZnTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHjQy/qL9asX0nn3/gcfmSW3Q7LKNm9isQZtX0+VkKNdAiBdHltSY7OWqEIT6teybKUwaCnTJ3S4xgf0dGnxZoXMcQ=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"mixu","email":"mixu@mixu.net"},"maintainers":[{"name":"mixu","email":"mixu@mixu.net"}],"directories":{}},"0.0.3":{"name":"microee","description":"A tiny EventEmitter-like client and server side library","license":"BSD","version":"0.0.3","author":{"name":"Mikito Takada","email":"mixu@mixu.net","url":"http://mixu.net/"},"keywords":["event","events","eventemitter","emitter"],"repository":{"type":"git","url":"git://github.com/mixu/microee"},"main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --ui exports --reporter spec --bail ./test/microee.test.js"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/mixu/microee/issues"},"_id":"microee@0.0.3","dist":{"shasum":"2945a6373c90b7e3d4632cb3aa96e5b0f53360b8","tarball":"https://registry.npmjs.org/microee/-/microee-0.0.3.tgz","integrity":"sha512-riWmyTPLczhmk0aOGg0ZDoCydavDUnXT7Dr8Zh4hIR2/gcRAbMRtKX7h8Dq2NLPp9ITQUjBgpbAX/DfX5QiZ3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3diP3gFYdg5HnjCOXDUaA7oeNXnImMTN3FJJa64AXcAiA5BJfKl312nA2C3nQoQMLdpSwLIu/RIwUr/SPklPDHGA=="}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"mixu","email":"mixu@mixu.net"},"maintainers":[{"name":"mixu","email":"mixu@mixu.net"}],"directories":{}},"0.0.5":{"name":"microee","description":"A tiny EventEmitter-like client and server side library","license":"BSD","version":"0.0.5","author":{"name":"Mikito Takada","email":"mixu@mixu.net","url":"http://mixu.net/"},"keywords":["event","events","eventemitter","emitter"],"repository":{"type":"git","url":"git://github.com/mixu/microee"},"main":"index.js","scripts":{"test":"mocha --ui exports --reporter spec --bail ./test/microee.test.js"},"devDependencies":{"mocha":"*","uglify-js":"~2.4.12"},"bugs":{"url":"https://github.com/mixu/microee/issues"},"homepage":"https://github.com/mixu/microee","_id":"microee@0.0.5","dist":{"shasum":"972cca0be26033cd43472235325d5cb9610a8d57","tarball":"https://registry.npmjs.org/microee/-/microee-0.0.5.tgz","integrity":"sha512-2QA1ec5sKOE4M881o2MPr/piWa64tIv45CmwL2yXV1+ytJv18hSNAFQyGSvUWRpNWPlFynEsJRi/X49w3h2g5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJJnWNoBCHdlPSZN7iv4I8gZ0E9sFoLslSJu9jdaGK9AIgM5xrhj75CIGdsnaS/UJfTjr+LFhHBT+xnq9uxfBKSeg="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"mixu","email":"mixu@mixu.net"},"maintainers":[{"name":"mixu","email":"mixu@mixu.net"}]},"0.0.6":{"name":"microee","description":"A tiny EventEmitter-like client and server side library","license":"BSD","version":"0.0.6","author":{"name":"Mikito Takada","email":"mixu@mixu.net","url":"http://mixu.net/"},"keywords":["event","events","eventemitter","emitter"],"repository":{"type":"git","url":"git://github.com/mixu/microee"},"main":"index.js","scripts":{"test":"./node_modules/.bin/mocha --ui exports --reporter spec --bail ./test/microee.test.js"},"devDependencies":{"mocha":"*","uglify-js":"~2.4.12"},"bugs":{"url":"https://github.com/mixu/microee/issues"},"_id":"microee@0.0.6","dist":{"shasum":"a12bdb0103681e8b126a9b071eba4c467c78fffe","tarball":"https://registry.npmjs.org/microee/-/microee-0.0.6.tgz","integrity":"sha512-/LdL3jiBWDJ3oQIRLgRhfeCZNE3patM1LiwCC124+/HHn10sI/G2OAyiMfTNzH5oYWoZBk0tRZADAUOv+0Wt0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClnMPuYpEx/hQqMSckCwPjbeuibyAm8dQ/Z2Dj3bSQTAIgPEjOre6RcZVI/i62NWGdV5Fgeu6CcwpBh8uaSjYOUz8="}]},"_from":".","_npmVersion":"1.2.31","_npmUser":{"name":"mixu","email":"mixu@mixu.net"},"maintainers":[{"name":"mixu","email":"mixu@mixu.net"}]}},"readme":"# microEE\n\nA client and server side library for routing events.\n\n[![Build Status](https://secure.travis-ci.org/mixu/microee.png?branch=master)](https://travis-ci.org/mixu/microee)\n\nI was disgusted by the size of [MiniEE](https://github.com/mixu/miniee) (122 sloc, 4.4kb), so I decided a rewrite was in order.\n\nMicroEE is a more satisfying (~50 sloc, ~1200 characters), and passes the same tests as MiniEE (excluding the RegExp support, but including many real-world tests, such as removing a once() callback, and checking for the correct order of once callback removal).\n\n# Installing:\n\n    npm install microee\n\n# In-browser version\n\nUse the version in `./dist/`. It exports a single global, `microee`.\n\nTo run the in-browser tests, open `./test/index.html` in the browser after cloning this repo and doing npm install (to get Mocha).\n\n# Usage example: `microee.mixin`\n\n    var MicroEE = require('microee');\n    function MyClass() {\n      // ...\n    }\n    MicroEE.mixin(MyClass);\n    MyClass.prototype.foo = function() {\n      // ...\n    };\n\n    var obj = new MyClass();\n    // set string callback\n    obj.on('event', function(arg1, arg2) { console.log(arg1, arg2); });\n    obj.emit('event', 'aaa', 'bbb'); // trigger callback\n\n# API\n\nThe API is based on [Node's EventEmitter](http://nodejs.org/api/events.html).\n\nThere are two additional niceties: `emitter.when(event, listener)` and `.mixin()`.\n\nSupport for `emitter.listeners(event)` was added in `v0.0.6`.\n\n## emitter.on(event, listener)\n\nAdds a listener to the end of the listeners array for the specified event.\n\n```\nserver.on('connection', function (stream) {\n  console.log('someone connected!');\n});\n```\n\nReturns emitter, so calls can be chained.\n\n## emitter.once(event, listener)\n\nAdds a one time listener for the event. This listener is invoked only the next time the event is fired, after which it is removed.\n\nReturns emitter, so calls can be chained.\n\n## emitter.when(event, listener)\n\nAddition to the regular API. If `listener` returns true, the listener is removed. Useful for waiting for a particular set of parameters on a recurring event e.g. in tests.\n\nReturns emitter, so calls can be chained.\n\n## microee.mixin(object)\n\nAddition to the regular API. Extends `object.prototype` with all the microee methods, allowing other classes to act like event emitters.\n\n## emitter.emit(event, [arg1], [arg2], [...])\n\nExecute all listeners on `event`, with the supplied arguments.\n\nReturns emitter, so calls can be chained.\n\n## emitter.removeListener(event, listener)\n\nRemove a listener from the listener array for the specified event.\n\n## emitter.removeAllListeners([event])\n\nRemoves all listeners, or those of the specified event.\n\n## emitter.listeners(event)\n\nReturns an array of listeners for the specified event.\n","maintainers":[{"name":"mixu","email":"mixu@mixu.net"}],"time":{"modified":"2022-06-19T18:46:50.542Z","created":"2012-10-05T03:24:24.113Z","0.0.1":"2012-10-05T03:24:25.459Z","0.0.2":"2012-10-05T22:04:25.299Z","0.0.3":"2014-01-06T21:11:37.563Z","0.0.4":"2014-01-28T21:49:22.789Z","0.0.5":"2014-01-29T01:55:09.286Z","0.0.6":"2014-02-27T22:15:25.103Z"},"author":{"name":"Mikito Takada","email":"mixu@mixu.net","url":"http://mixu.net/"},"repository":{"type":"git","url":"git://github.com/mixu/microee"},"readmeFilename":"readme.md","homepage":"https://github.com/mixu/microee","keywords":["event","events","eventemitter","emitter"],"bugs":{"url":"https://github.com/mixu/microee/issues"},"license":"BSD"}