{"name":"nanoevents","version":"1.0.4","description":"Simple and tiny (117 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"},"engines":{"node":">=4.0.0"},"dependencies":{},"devDependencies":{"docdash":"^0.4.0","eslint":"^4.19.1","eslint-ci":"^0.1.1","eslint-config-logux":"^23.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-es5":"^1.3.1","eslint-plugin-import":"^2.12.0","eslint-plugin-jest":"^21.17.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-security":"^1.4.0","eslint-plugin-standard":"^3.1.0","jest":"^23.1.0","jsdoc":"^3.5.5","lint-staged":"^7.2.0","pre-commit":"^1.2.2","rimraf":"^2.6.2","size-limit":"^0.18.3","yaspeller-ci":"^1.0.0"},"scripts":{"lint-staged":"lint-staged","spellcheck":"yarn docs && yaspeller-ci *.md docs/*.html","clean":"rimraf docs/ coverage/","lint":"eslint-ci *.js test/*.js","docs":"jsdoc --configure .jsdocrc *.js","test":"jest --coverage && yarn lint && size-limit && yarn spellcheck"},"pre-commit":["lint-staged"],"gitHead":"42b900056c25a7442fcce933c3e02bb260b8d9e1","bugs":{"url":"https://github.com/ai/nanoevents/issues"},"homepage":"https://github.com/ai/nanoevents#readme","_id":"nanoevents@1.0.4","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"dist":{"integrity":"sha512-/uHvEHq9vNKl6tn0t3mDj1o8QlGcn/rCSltODb1YTvx+IvXHcLYmbIXGaVzpYTGsXWzv5uGasIuFxN0JXP4s1w==","shasum":"cad8bd7bd77d0f0b2c87cdff8770c5b461b49d7f","tarball":"http://registry-npm.ywwl.com/nanoevents/download/nanoevents-1.0.4.tgz","fileCount":6,"unpackedSize":8551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLSMxCRA9TVsSAnZWagAAA9QP+wdGvDBrw9p++lt8hvra\naOgUkqnWv2w6yRG7HvWJPtM89ADP0lOQkpaLxWJnj2CP4usT2bblBtEItUqy\nrL2v2pVM26CQRjUHjkHb5FmR6Z/H/SSFtTrouN4tUPrD2WwNWBz/oqwDDTLF\n5gFRqPBBwWSwN9zfhYSdR4qnthfn+E85RPxpa7ZIJRdT2AWK92QAhORaFeX+\nJoBcpBQH9ClDgEI0YxCnz1YPraCMjdoaZ8vrJWORwgRrcxnLc1Whs9Vv96Pp\nDzFKWHEwJIHzzFcOeAJLOfspLi1ygF+Z0GjytaTqiqLg6vMErcrDblT/XLX+\nvXh7j+ZD5ZtuL9oSaI4X6NGoa7YaOzk7mWFyBX6dh6l5p88t6ZWn/ZHyHF/J\nlqb0TpRKm23ZouXJUE3dRTAwo2h303ZnZgsgc79/ZU+d4t8PVlO9xV0kfdLB\nFhlPZ1eevrldenxKyBaZZ9ZjJikw2Q3UT6jTASD9UIbESQvpfNygYwmhHF3m\nKkOwIKVv4Z0QbdNTZNjf3iLsj2tLQzCQXn/My+mvfBCWPoykTLqKS5X3gmk/\nKpCZGSfleSl6g0+SliOcFbdTonzoNGTRDV+H3hReGgikqVYZWkX/h9ATo8Vp\nWTnyN0IbFXQH56YlgrDc1skjcB/f5A1v7cK6IMYNR342OUcWLGKwwzA6uWho\n71nn\r\n=S1zq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfYgrWkpKonyi5++2taIPR5kqoJsYxHoyDTKLEorBNOgIhAIT9BJDcvbgI3KVCAUD1XIzeGxJ1LCUpvzUMHzualh46"}],"size":3697,"noattachment":false,"key":"/nanoevents/-/nanoevents-1.0.4.tgz"},"maintainers":[{"name":"ai","email":"andrey@sitnik.ru"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nanoevents_1.0.4_1529684785269_0.3153129518513842"},"_hasShrinkwrap":false,"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":1529684785323,"_cnpm_publish_time":1529684785323,"dist-tags":{"latest":"10.0.0"}}