{"_id":"global-queue","_rev":"6-beca1406f5734bba51526ceaa47bcfac","name":"global-queue","description":"Generate a method that will push onto a global queue.","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"global-queue","repository":{"type":"git","url":"git+https://github.com/segmentio/global-queue.git"},"version":"1.0.1","license":"MIT","description":"Generate a method that will push onto a global queue.","keywords":["global","queue","push","analytics"],"dependencies":{"debug":"^2.2.0"},"devDependencies":{"mocha":"*"},"gitHead":"b11e790fa8b4be141769e4e9fa0fb4b3dcf90c1c","bugs":{"url":"https://github.com/segmentio/global-queue/issues"},"homepage":"https://github.com/segmentio/global-queue#readme","_id":"global-queue@1.0.1","scripts":{},"_shasum":"f2f222560fb73dfc505cbec2c8aa402f0cd53fda","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"ndhoule","email":"nathan@nathanhoule.com"},"dist":{"shasum":"f2f222560fb73dfc505cbec2c8aa402f0cd53fda","tarball":"https://registry.npmjs.org/global-queue/-/global-queue-1.0.1.tgz","integrity":"sha512-pleffdAe1fPoiGItuxHFnJQ2h96678dx8UbjeE5ekYUlK9tJSJRJpEQuPu8MhDXv2vFSHn/PFh6XsMXlW+khkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCI5JeGRgoOkvrE0SUaiTLEk+NeCobSNHnnY7lwDg08gIhALxuiOhcD05L1zsl22J6RoNsL+JSULzTRWGrNyQxRk2P"}]},"maintainers":[{"name":"ndhoule","email":"nathan@nathanhoule.com"}]}},"readme":"\n# global-queue\n\n  Generate a method that will push onto a global queue, commonly used by 3rd-party Javascript tools.\n\n## Installation\n\n    $ component install segmentio/global-queue\n\n## Example\n\n```js\nvar push = require('global-queue')('_analytics');\n\npush('key', '506g76b52f52c3f662000190');\npush('identify', 'user@example.com');\npush('track', 'Loaded a Page');\n\nwindow._analytics;\n// [\n//   ['key', '506g76b52f52c3f662000190'],\n//   ['identify', 'user@example.com'],\n//   ['track', 'Loaded a Page']\n// ]\n```\n\n## API\n\n### generate(name, [options])\n  \n  Return a function that will push onto the global queue named `name`, creating it if it doesn't already exist. Options:\n\n    {\n      wrap: true\n    }\n\n  Setting `wrap` to `false` will not wrap your arguments in an array. Most services want that, but some keep them as objects or plain values.\n  \n## License\n\n  MIT\n","maintainers":[{"email":"tools+npm@segment.com","name":"segment-admin"},{"email":"nathan@nathanhoule.com","name":"ndhoule"}],"time":{"modified":"2022-06-18T12:56:22.838Z","created":"2015-05-13T02:52:36.647Z","1.0.1":"2015-05-13T02:52:36.647Z"},"homepage":"https://github.com/segmentio/global-queue#readme","keywords":["global","queue","push","analytics"],"repository":{"type":"git","url":"git+https://github.com/segmentio/global-queue.git"},"bugs":{"url":"https://github.com/segmentio/global-queue/issues"},"license":"MIT","readmeFilename":"Readme.md"}