{"name":"nanoevents","version":"0.1.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":"d63a8b4ad4c8562d613ec2b6bbaf0663a870eaa0","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@0.1.0","_shasum":"8cb1f52f93a362c24c63eef78bc0b2ce4075515d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"shasum":"8cb1f52f93a362c24c63eef78bc0b2ce4075515d","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-0.1.0.tgz","integrity":"sha512-tocgP2uLAOpNicmaIqVZJvzVm6h7H5tULzZD9V7RFzP79yx86CXfddM6uPQKxEof+AKLB6Ka5zTr0W8mSRTsNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhdeLohRCLAngt+6R7gL/RH0p4NwmtlZBsEyFCyacH2AIgUcwDYvuGC5sEdCFU36NM9z0LYQFMuTf00ESd2hQYJbQ="}],"size":3158,"noattachment":false,"key":"/nanoevents/-/nanoevents-0.1.0.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nanoevents-0.1.0.tgz_1474544020198_0.13914574426598847"},"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":1474544020429,"_cnpm_publish_time":1474544020429,"dist-tags":{"latest":"10.0.0"}}