{"name":"nanoevents","version":"0.3.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.10.2","eslint-config-standard":"^6.2.1","eslint-plugin-promise":"^3.4.0","eslint-plugin-standard":"^2.0.1","jest":"^17.0.3","jsdoc":"^3.4.3","lint-staged":"^3.2.1","pre-commit":"^1.1.3","rimraf":"^2.5.4","uglifyjs":"^2.4.10","yaspeller":"^3.0.0"},"scripts":{"lint-staged":"lint-staged","spellcheck":"npm run cleandocs && yaspeller *.md docs/*.html","cleandocs":"npm run docs && rimraf docs/*.js.html","clean":"rimraf docs/ coverage/ *.gz","lint":"eslint *.js test/*.js","docs":"jsdoc --configure .jsdocrc *.js","test":"jest --coverage && npm run lint && npm run spellcheck","compress":"uglifyjs index.js -o min.js && gzip -9 -f min.js","show":"ls -lh *.gz | awk '{print \"Size:\", $5\"B\"}'","size":"npm run compress && npm run show && rm *.gz"},"jest":{"coverageThreshold":{"global":{"statements":100}}},"eslintConfig":{"extends":"standard","rules":{"valid-jsdoc":"error","max-len":[2,80]},"env":{"jest":true}},"lint-staged":{"*.md":"yaspeller","*.js":"eslint"},"pre-commit":["lint-staged"],"gitHead":"8048badb83b6eb23c5d3dd1a7c4e2cdfc49eb9e4","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@0.3.0","_shasum":"4d7ed1e38510e19bd79b99ffc4a2e5f91f33a411","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"shasum":"4d7ed1e38510e19bd79b99ffc4a2e5f91f33a411","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-0.3.0.tgz","integrity":"sha512-3ckHpcUgdDJePsSZTsfSBwe5vhz2IAzET+sPBSeXuKbFO0yb1LyklxDfNMHF2rTH1pMz4fr1gaL0CTKFa1mqSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4BJpaKY/uAZwosXmsM0muEUwuyl+QQ6AU15R9QON1ewIgQabV8w4cq7KSt1d+noJwKkV35yXutR+nBEfuOha7V5Y="}],"size":3462,"noattachment":false,"key":"/nanoevents/-/nanoevents-0.3.0.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nanoevents-0.3.0.tgz_1479755861494_0.33861310686916113"},"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":1479755863348,"_cnpm_publish_time":1479755863348,"dist-tags":{"latest":"10.0.0"}}