{"_id":"sparkles","_rev":"3343427","name":"sparkles","description":"Namespaced global event emitter","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"time":{"modified":"2024-07-10T08:45:31.000Z","created":"2014-12-09T03:38:13.968Z","2.1.0":"2024-03-23T21:44:26.707Z","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":{"ivangaravito":true,"josudoey":true},"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.1.0":{"name":"sparkles","version":"2.1.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"],"_id":"sparkles@2.1.0","gitHead":"d4afc77d45bae5de6aca01bf9628c839eeb2f903","bugs":{"url":"https://github.com/gulpjs/sparkles/issues"},"homepage":"https://github.com/gulpjs/sparkles#readme","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"shasum":"8ad4e8cecba7e568bba660c39b6db46625ecf1ad","size":2544,"noattachment":false,"key":"/sparkles/-/sparkles-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/sparkles/download/sparkles-2.1.0.tgz"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sparkles_2.1.0_1711230266551_0.28659316630169207"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-23T21:44:26.707Z","publish_time":1711230266707,"_source_registry_name":"default","_cnpm_publish_time":1711230266707},"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://registry.cnpm.dingdandao.com/sparkles/download/sparkles-2.0.0.tgz"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"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://registry.cnpm.dingdandao.com/sparkles/download/sparkles-1.0.1.tgz"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"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":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"1acbbfb592436d10bbe8f785b7cc6f82815012c3","size":1941,"noattachment":false,"key":"/sparkles/-/sparkles-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/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":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"44f17f733c7d3c06cac7b7b59bfb6efa226653e0","size":1812,"noattachment":false,"key":"/sparkles/-/sparkles-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/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":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"1ec6844c63cc7e29fdaa8f0fa3def9d861b3c26a","size":1922,"noattachment":false,"key":"/sparkles/-/sparkles-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/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] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-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\nNote: If you put an event handler in a file in your application, that file must be loaded in via an import somewhere in your application, even if it's not directly being used. Otherwise, it will not be loaded into memory.\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<!-- prettier-ignore-start -->\n[downloads-image]: https://img.shields.io/npm/dm/sparkles.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/sparkles\n[npm-image]: https://img.shields.io/npm/v/sparkles.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/sparkles/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/sparkles/dev.yml?branch=master&style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/sparkles\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/sparkles/master.svg?style=flat-square\n<!-- prettier-ignore-end -->\n","_attachments":{},"homepage":"https://github.com/gulpjs/sparkles#readme","bugs":{"url":"https://github.com/gulpjs/sparkles/issues"},"license":"MIT"}