{"name":"nanoevents","version":"0.4.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":"^4.6.1","eslint-config-logux":"^16.1.1","eslint-config-standard":"^10.2.1","eslint-plugin-es5":"^1.1.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jest":"^21.0.2","eslint-plugin-node":"^5.1.1","eslint-plugin-promise":"^3.5.0","eslint-plugin-security":"^1.4.0","eslint-plugin-standard":"^3.0.1","jest":"^21.0.2","jsdoc":"^3.5.4","lint-staged":"^4.1.3","pre-commit":"^1.2.2","rimraf":"^2.6.1","size-limit":"^0.11.1","yaspeller-ci":"^0.6.0"},"scripts":{"lint-staged":"lint-staged","spellcheck":"yarn docs && yaspeller-ci *.md docs/*.html","clean":"rimraf docs/ coverage/","lint":"eslint *.js test/*.js","docs":"jsdoc --configure .jsdocrc *.js","test":"jest --coverage && yarn lint && size-limit && yarn spellcheck"},"jest":{"coverageThreshold":{"global":{"statements":100}}},"engines":{"node":">=4.0.0"},"eslintConfig":{"extends":"eslint-config-logux/browser"},"size-limit":[{"path":"index.js","limit":"270 B"}],"lint-staged":{"*.md":"yaspeller-ci","*.js":"eslint"},"pre-commit":["lint-staged"],"gitHead":"bf393080a7a6014a4e9e8922aecb58e2b8770a50","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@0.4.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"integrity":"sha512-dZlIykmL9Mxix1w1MQj1zQNykPhR9IlllRw0BkakDsB+ZMopsZeoS/l+Q/FbDj46Mkp8vLSrwQXXHYUNS7O0sA==","shasum":"9655be88c934e875f1d45b8280416ccca7e73070","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-0.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8q0SML1iF0qNWyX8vKnqc7EyxyNjNFSsGXw6LcOU/CAiEAvBKpmJOhlWndwRmQoJfFyonohVIzFMXgi37iXT8AYkk="}],"size":3654,"noattachment":false,"key":"/nanoevents/-/nanoevents-0.4.0.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoevents-0.4.0.tgz_1505019076810_0.4238080829381943"},"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":1505019077714,"_cnpm_publish_time":1505019077714,"dist-tags":{"latest":"10.0.0"}}