{"library":"elegant-queue","type":"library","category":null,"description":"elegant-queue (v1.0.9) is a high-performance queue implementation for JavaScript and TypeScript that uses a linked list of fixed-size arrays (circular buffers) to achieve O(1) enqueue and dequeue operations. Unlike native array-based queues that suffer from O(n) shifting, this package maintains constant-time operations even with millions of elements. It ships TypeScript definitions, supports both CommonJS and ES Modules, and offers a simple API: enqueue, dequeue, peek, clear, size, and isEmpty. The default internal array size is 4096, but can be configured. Suitable for Node.js and browser environments. Stable release, no recent updates.","language":"javascript","status":"active","version":"1.0.9","tags":["javascript","queue","elegant-queue","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install elegant-queue","imports":["import { Queue } from 'elegant-queue'","const { Queue } = require('elegant-queue')","import { Queue } from 'elegant-queue'"]},{"cmd":"yarn add elegant-queue","imports":[]},{"cmd":"pnpm add elegant-queue","imports":[]}],"homepage":"https://github.com/seongjin605/elegant-queue#readme","github":"https://github.com/seongjin605/elegant-queue","docs":null,"changelog":null,"pypi":null,"npm":"elegant-queue","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}