{"name":"nanoevents","version":"1.0.0","description":"Simple and tiny (130 bytes) event emitter library","keywords":["EventEmitter","Events","emit","emitter","event","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.7.0","eslint-config-logux":"^16.2.0","eslint-config-standard":"^10.2.1","eslint-plugin-es5":"^1.1.0","eslint-plugin-import":"^2.7.0","eslint-plugin-jest":"^21.1.0","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.1.0","jsdoc":"^3.5.5","lint-staged":"^4.2.1","pre-commit":"^1.2.2","rimraf":"^2.6.2","size-limit":"^0.11.3","yaspeller-ci":"^0.7.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","rules":{"no-invalid-this":"off"}},"size-limit":[{"path":"index.js","limit":"130 B"}],"lint-staged":{"*.md":"yaspeller-ci","*.js":"eslint"},"pre-commit":["lint-staged"],"gitHead":"8b91c1120368b05c5dccd4e8b2148fc49428f820","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"integrity":"sha512-AkKoP/FOIWsXOGCPcdZrgsBXpHin2Oc78JY3s/rZUggNlhy41yKO6bu0LhCxRC8Yzw2oVQfojlH0qu0vloNJNQ==","shasum":"d804bcc54bd9699592695b243c14079cf886e14e","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPWtykIXkf3fp27nO19dW8h7GKr2xp1ZrsWG1ukK5BNAIgSSAFVmzjQZ+JyHYS/sabgMp0/e6OiE3WTUC9KybCMmY="}],"size":3556,"noattachment":false,"key":"/nanoevents/-/nanoevents-1.0.0.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoevents-1.0.0.tgz_1505757900911_0.058462189976125956"},"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":1505757901036,"_cnpm_publish_time":1505757901036,"dist-tags":{"latest":"10.0.0"}}