{"_id":"sparkles","_rev":"196503","name":"sparkles","description":"Namespaced global event emitter","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"phated","email":""},{"name":"sttk","email":""},{"name":"yocontra","email":""}],"time":{"modified":"2023-03-20T07:55:11.000Z","created":"2014-12-09T03:38:13.968Z","2.0.0":"2022-02-01T01:38:25.827Z","1.0.1":"2018-05-14T02:57:44.379Z","1.0.0":"2015-09-08T00:01:19.049Z","0.1.0":"2015-01-29T17:21:43.625Z","0.0.0":"2014-12-09T03:38:13.968Z"},"users":{},"author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"repository":{"type":"git","url":"git+https://github.com/gulpjs/sparkles.git"},"versions":{"2.0.0":{"name":"sparkles","version":"2.0.0","description":"Namespaced global event emitter","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/sparkles.git"},"license":"MIT","engines":{"node":">= 10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha --async-only"},"devDependencies":{"eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.3.1","mocha":"^8.4.0","nyc":"^15.1.0"},"nyc":{"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["ee","emitter","events","global","namespaced"],"gitHead":"9f18a7d8434772dfa500e0352c7abef97db9708a","bugs":{"url":"https://github.com/gulpjs/sparkles/issues"},"homepage":"https://github.com/gulpjs/sparkles#readme","_id":"sparkles@2.0.0","_nodeVersion":"14.18.3","_npmVersion":"6.14.15","dist":{"shasum":"1fcfb7ad687710bbcdd5c655d6ae523952345346","size":2803,"noattachment":false,"key":"/sparkles/-/sparkles-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/sparkles/download/sparkles-2.0.0.tgz"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"phated","email":""},{"name":"sttk","email":""},{"name":"yocontra","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sparkles_2.0.0_1643679505648_0.3953190240095419"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-01T01:38:30.454Z","publish_time":1643679505827,"_cnpm_publish_time":1643679505827},"1.0.1":{"name":"sparkles","version":"1.0.1","description":"Namespaced global event emitter","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/sparkles.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint .","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{},"devDependencies":{"eslint":"^2.13.0","eslint-config-gulp":"^3.0.1","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","mocha":"^3.5.3"},"keywords":["ee","emitter","events","global","namespaced"],"gitHead":"da22dc644d2ec25da634b5a161881bef1e3a0ff1","bugs":{"url":"https://github.com/gulpjs/sparkles/issues"},"homepage":"https://github.com/gulpjs/sparkles#readme","_id":"sparkles@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"dist":{"shasum":"008db65edce6c50eec0c5e228e1945061dd0437c","size":2358,"noattachment":false,"key":"/sparkles/-/sparkles-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/sparkles/download/sparkles-1.0.1.tgz"},"maintainers":[{"name":"phated","email":""},{"name":"sttk","email":""},{"name":"yocontra","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sparkles_1.0.1_1526266664297_0.09154957041809064"},"_hasShrinkwrap":false,"publish_time":1526266664379,"_cnpm_publish_time":1526266664379},"1.0.0":{"name":"sparkles","version":"1.0.0","description":"Namespaced global event emitter","author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"contributors":[],"repository":{"type":"git","url":"git+https://github.com/phated/sparkles.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"test":"lab -cvL --ignore store@sparkles"},"dependencies":{},"devDependencies":{"@phated/eslint-config-iceddev":"^0.2.1","code":"^1.5.0","eslint":"^1.3.1","eslint-plugin-mocha":"^0.5.1","eslint-plugin-react":"^3.3.1","lab":"^5.16.0"},"keywords":["ee","emitter","events","global","namespaced"],"gitHead":"66eed55eeac9f3ba641d4643c5ad2ed598bc6a72","bugs":{"url":"https://github.com/phated/sparkles/issues"},"homepage":"https://github.com/phated/sparkles#readme","_id":"sparkles@1.0.0","_shasum":"1acbbfb592436d10bbe8f785b7cc6f82815012c3","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.36","_npmUser":{"name":"phated","email":"blaine@iceddev.com"},"maintainers":[{"name":"phated","email":""},{"name":"sttk","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"1acbbfb592436d10bbe8f785b7cc6f82815012c3","size":1941,"noattachment":false,"key":"/sparkles/-/sparkles-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/sparkles/download/sparkles-1.0.0.tgz"},"directories":{},"publish_time":1441670479049,"_cnpm_publish_time":1441670479049,"_hasShrinkwrap":false},"0.1.0":{"name":"sparkles","version":"0.1.0","description":"Namespaced global event emitter","author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"contributors":[],"repository":{"type":"git","url":"https://github.com/phated/sparkles"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["index.js","LICENSE"],"scripts":{"test":"lab -cv --ignore store@sparkles","lint":"jshint test index.js --reporter node_modules/jshint-stylish/stylish.js --exclude node_modules"},"dependencies":{},"devDependencies":{"code":"^1.2.1","jshint":"^2.5.10","jshint-stylish":"^1.0.0","lab":"^5.1.0"},"keywords":["global","ee","events","emitter","namespaced"],"gitHead":"7157cb24ef3c5ec0a3b439e6ff7002e4a19bab08","bugs":{"url":"https://github.com/phated/sparkles/issues"},"homepage":"https://github.com/phated/sparkles","_id":"sparkles@0.1.0","_shasum":"44f17f733c7d3c06cac7b7b59bfb6efa226653e0","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"phated","email":"blaine@iceddev.com"},"maintainers":[{"name":"phated","email":""},{"name":"sttk","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"44f17f733c7d3c06cac7b7b59bfb6efa226653e0","size":1812,"noattachment":false,"key":"/sparkles/-/sparkles-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/sparkles/download/sparkles-0.1.0.tgz"},"directories":{},"publish_time":1422552103625,"_cnpm_publish_time":1422552103625,"_hasShrinkwrap":false},"0.0.0":{"name":"sparkles","version":"0.0.0","description":"Namespaced global event emitter","author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"contributors":[],"repository":{"type":"git","url":"https://github.com/phated/sparkles"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["index.js","LICENSE"],"scripts":{"test":"lab -cv","lint":"jshint test index.js --reporter node_modules/jshint-stylish/stylish.js --exclude node_modules"},"dependencies":{},"devDependencies":{"code":"^1.2.1","jshint":"^2.5.10","jshint-stylish":"^1.0.0","lab":"^5.1.0"},"keywords":["global","ee","events","emitter","namespaced"],"gitHead":"2ba1bca61a43ae1a611388f0ed59e4010375edfb","bugs":{"url":"https://github.com/phated/sparkles/issues"},"homepage":"https://github.com/phated/sparkles","_id":"sparkles@0.0.0","_shasum":"1ec6844c63cc7e29fdaa8f0fa3def9d861b3c26a","_from":".","_npmVersion":"2.1.8","_nodeVersion":"0.10.32","_npmUser":{"name":"phated","email":"blaine@iceddev.com"},"maintainers":[{"name":"phated","email":""},{"name":"sttk","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"1ec6844c63cc7e29fdaa8f0fa3def9d861b3c26a","size":1922,"noattachment":false,"key":"/sparkles/-/sparkles-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/sparkles/download/sparkles-0.0.0.tgz"},"directories":{},"publish_time":1418096293968,"_cnpm_publish_time":1418096293968,"_hasShrinkwrap":false}},"readme":"<p align=\"center\">\n  <a href=\"http://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# sparkles\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]\n\nNamespaced global event emitter\n\n## Usage\n\nSparkles exports a function that returns a singleton `EventEmitter`.\nThis EE can be shared across your application, whether or not node loads\nmultiple copies.\n\n```js\nvar sparkles = require('sparkles')(); // make sure to call the function\n\nsparkles.on('my-event', function(evt){\n  console.log('my-event handled', evt);\n});\n\nsparkles.emit('my-event', { my: 'event' });\n```\n\n## API\n\n### sparkles(namespace)\n\nReturns an EventEmitter that is shared amongst the provided namespace.  If no namespace\nis provided, returns a default EventEmitter.\n\n### sparkles.exists(namespace);\n\nChecks whether a namespace exists and returns true or false.\n\n## Why the name?\n\nThis is a \"global emitter\"; shortened: \"glitter\" but it was already taken; so we got sparkles instead :smile:\n\n## License\n\nMIT\n\n[downloads-image]: http://img.shields.io/npm/dm/sparkles.svg\n[npm-url]: https://www.npmjs.com/package/sparkles\n[npm-image]: http://img.shields.io/npm/v/sparkles.svg\n\n[travis-url]: https://travis-ci.org/gulpjs/sparkles\n[travis-image]: http://img.shields.io/travis/gulpjs/sparkles.svg?label=travis-ci\n\n[appveyor-url]: https://ci.appveyor.com/project/gulpjs/sparkles\n[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/sparkles.svg?label=appveyor\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/sparkles\n[coveralls-image]: http://img.shields.io/coveralls/gulpjs/sparkles/master.svg\n\n[gitter-url]: https://gitter.im/gulpjs/gulp\n[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg\n","_attachments":{},"homepage":"https://github.com/gulpjs/sparkles#readme","bugs":{"url":"https://github.com/gulpjs/sparkles/issues"},"license":"MIT"}