{"name":"nanoevents","version":"0.2.0","description":"Small and simple events API","keywords":["EventEmitter","Events","emit","emitter","event","once","pub/sub","publish","reactor","subscribe"],"author":{"name":"Andrey Sitnik","email":"andrey@sitnik.ru"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ai/nanoevents.git"},"dependencies":{},"devDependencies":{"docdash":"^0.4.0","eslint":"^3.5.0","eslint-config-standard":"^6.0.1","eslint-plugin-promise":"^2.0.1","eslint-plugin-standard":"^2.0.0","jest":"^15.1.1","jsdoc":"^3.4.1","lint-staged":"^3.0.2","pre-commit":"^1.1.3","rimraf":"^2.5.4","yaspeller":"^2.9.1"},"scripts":{"lint-staged":"lint-staged","spellcheck":"npm run docs && yaspeller *.md docs/*.html","clean":"rimraf docs/ coverage/","lint":"eslint *.js test/*.js","docs":"jsdoc --configure .jsdocrc *.js","test":"jest --coverage && npm run lint && npm run spellcheck"},"jest":{"coverageThreshold":{"global":{"statements":100}}},"eslintConfig":{"extends":"standard","rules":{"valid-jsdoc":"error","no-new":"off"},"env":{"jest":true}},"lint-staged":{"*.md":"yaspeller","*.js":"eslint"},"pre-commit":["lint-staged"],"gitHead":"273a28d552e5922f7902c6c0518dc5a607f5d642","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@0.2.0","_shasum":"56ec7914e1d978a7ec2d4e0213c352a32e15988f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"shasum":"56ec7914e1d978a7ec2d4e0213c352a32e15988f","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-0.2.0.tgz","integrity":"sha512-LLFQPLbjN0BhLvXCqieuhiiLeFneWR23YgzFyjgr/TEBwjzgAC6pu16ndX4ISFZprwLjosKsphBK1wFSwKn5kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVZD9XQobNvUqvEAi3seGEV5qXQ3fSXvMTaol+3gi9cAiASym84XoGVEgNIV/ZjxnSJoAaZlMh/UwXlFEVf70AFUw=="}],"size":3189,"noattachment":false,"key":"/nanoevents/-/nanoevents-0.2.0.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nanoevents-0.2.0.tgz_1474545893193_0.27510207425802946"},"directories":{},"readme":"# Nano Events\n\nSimple and tiny event emitter library for JavaScript.\n\n* Only **107 bytes** (minified and brotlied).\n  It uses [Size Limit] to control size.\n* The `on` method returns `unbind` function. You don’t need to save\n  callback to variable for `removeListener`.\n* TypeScript and ES modules support.\n* No aliases, just `emit` and `on` methods.\n  No Node.js [EventEmitter] compatibility.\n\n```js\nimport { createNanoEvents } from 'nanoevents'\n\nconst emitter = createNanoEvents()\n\nconst unbind = emitter.on('tick', volume => {\n  summary += volume\n})\n\nemitter.emit('tick', 2)\nsummary //=> 2\n\nunbind()\nemitter.emit('tick', 2)\nsummary //=> 2\n```\n\n[EventEmitter]: https://nodejs.org/api/events.html\n[Size Limit]:   https://github.com/ai/size-limit\n\n<a href=\"https://evilmartians.com/?utm_source=nanoevents\">\n  <img src=\"https://evilmartians.com/badges/sponsored-by-evil-martians.svg\"\n       alt=\"Sponsored by Evil Martians\" width=\"236\" height=\"54\">\n</a>\n\n\n## Docs\nRead full docs **[here](https://github.com/ai/nanoevents#readme)**.\n","publish_time":1474545895243,"_cnpm_publish_time":1474545895243,"dist-tags":{"latest":"10.0.0"}}