{"library":"global-queue","type":"library","category":null,"description":"A micro-package (~20 lines) that generates a push function for a global queue array (e.g., window._analytics). Version 1.0.1 is stable; no regular releases. Designed for 3rd-party analytics/tracking snippets where standard async patterns (like promises or event emitters) aren't available. Unlike bespoke queue implementations, it ensures the queue array exists and pushes raw arguments (or wrapped arrays) onto it. Intended for browser use only—no Node.js environment considered. Minimal footprint, no dependencies, and trivial API (one exported function).","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","global","queue","push","analytics"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install global-queue","imports":["import push from 'global-queue'","const push = require('global-queue')","const push = require('global-queue')('_analytics');"]},{"cmd":"yarn add global-queue","imports":[]},{"cmd":"pnpm add global-queue","imports":[]}],"homepage":"https://github.com/segmentio/global-queue#readme","github":"https://github.com/segmentio/global-queue","docs":null,"changelog":null,"pypi":null,"npm":"global-queue","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}