{"library":"sorted-queue","type":"library","category":null,"description":"A sorted queue implementation based on an array-backed binary heap. Version 0.4.4 is the current stable release, but the package is in maintenance mode with no new features accepted. It is designed for Node.js >= 22 and ships TypeScript types. Key differentiators: items can be removed by reference (via item.pop()), supports custom comparator functions, and operates in O(log n) time for push/pop. It is ESM-only and lightweight with no dependencies.","language":"javascript","status":"maintenance","version":"0.4.4","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install sorted-queue","imports":["import { SortedQueue } from 'sorted-queue'","import type { SortedQueue } from 'sorted-queue'","const { SortedQueue } = await import('sorted-queue')"]},{"cmd":"yarn add sorted-queue","imports":[]},{"cmd":"pnpm add sorted-queue","imports":[]}],"homepage":"https://github.com/badrap/sorted-queue#readme","github":"https://github.com/badrap/sorted-queue","docs":null,"changelog":null,"pypi":null,"npm":"sorted-queue","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}