{"name":"nanoevents","version":"0.4.1","description":"Simple and tiny (254 bytes) event emitter library","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.2.0","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.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"},"size-limit":[{"path":"index.js","limit":"254 B"}],"lint-staged":{"*.md":"yaspeller-ci","*.js":"eslint"},"pre-commit":["lint-staged"],"gitHead":"146d3befc7551d4926d79da694d6e92744b709a7","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@0.4.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"integrity":"sha512-aBHIHO7LBDb2iuqlSNmmwHdTBsX3W5MKjiH1Nri87tmuDZsorbIXGVt83DOy+uuEp5S07CvstNgcpIOdspqUZg==","shasum":"cc5d8c0fab29655c2d8edeab84f5995bfcffa56f","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-0.4.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8XQKzs88tYnwM5wwiULkiF8+nqyEp1m6DuESCuu7tVAIhAKzCXd/9A5xlCUHFA8QxjvXjiIuwHXGnwEw/QwqZM35j"}],"size":3761,"noattachment":false,"key":"/nanoevents/-/nanoevents-0.4.1.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoevents-0.4.1.tgz_1505196113190_0.5255781437736005"},"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":1505196113258,"_cnpm_publish_time":1505196113258,"dist-tags":{"latest":"10.0.0"}}