{"library":"heap","type":"library","category":null,"description":"A binary heap (priority queue) implementation in CoffeeScript/JavaScript, ported from Python's heapq module. Current stable version is 0.2.7 (last released in 2013). No release cadence; maintenance-only mode. Key differentiator: simple API with both instance methods (push, pop, peek) and static methods for arrays, plus nlargest/nsmallest utilities. Alternatives like `flatqueue` or `tinyqueue` may offer better performance or modern features.","language":"javascript","status":"maintenance","version":"0.2.7","tags":["javascript","algorithm","data structure","heap"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install heap","imports":["var Heap = require('heap');","var heap = new Heap();","heap.push(item);"]},{"cmd":"yarn add heap","imports":[]},{"cmd":"pnpm add heap","imports":[]}],"homepage":"https://github.com/qiao/heap.js","github":"git://github.com/qiao/heap.js","docs":null,"changelog":null,"pypi":null,"npm":"heap","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}