{"maintainers":[{"name":"phated","email":"blaine@iceddev.com"}],"keywords":["ee","emitter","events","global","namespaced"],"dist-tags":{"latest":"1.0.0"},"author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"description":"Namespaced global event emitter","readme":"sparkles\n========\n\n[![Build Status](https://travis-ci.org/phated/sparkles.svg?branch=master)](https://travis-ci.org/phated/sparkles)\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","repository":{"type":"git","url":"git+https://github.com/phated/sparkles.git"},"users":{"ivangaravito":true},"bugs":{"url":"https://github.com/phated/sparkles/issues"},"license":"MIT","versions":{"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@iceddev.com"}],"dist":{"shasum":"1ec6844c63cc7e29fdaa8f0fa3def9d861b3c26a","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/sparkles/-/sparkles-0.0.0.tgz"},"directories":{}},"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@iceddev.com"}],"dist":{"shasum":"44f17f733c7d3c06cac7b7b59bfb6efa226653e0","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/sparkles/-/sparkles-0.1.0.tgz"},"directories":{}},"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@iceddev.com"}],"dist":{"shasum":"1acbbfb592436d10bbe8f785b7cc6f82815012c3","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/sparkles/-/sparkles-1.0.0.tgz"},"directories":{}}},"name":"sparkles","contributors":[],"time":{"modified":"2015-09-08T00:01:19.049Z","created":"2014-12-09T03:38:13.968Z","0.0.0":"2014-12-09T03:38:13.968Z","0.1.0":"2015-01-29T17:21:43.625Z","1.0.0":"2015-09-08T00:01:19.049Z"},"readmeFilename":"README.md","homepage":"https://github.com/phated/sparkles#readme"}