{"_id":"@bartosz.zakrzewski.dev/ts-heap","_rev":"2-c5f0f495d8f385c8a15a89db33a828fd","name":"@bartosz.zakrzewski.dev/ts-heap","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@bartosz.zakrzewski.dev/ts-heap","version":"1.0.0","keywords":["Heap","TypeScript","MaxHeap","MinHeap"],"author":{"name":"Bartosz Zakrzewski"},"license":"MIT","_id":"@bartosz.zakrzewski.dev/ts-heap@1.0.0","maintainers":[{"name":"bartosz.zakrzewski.dev","email":"bartosz.zakrzewski.dev@gmail.com"}],"homepage":"https://github.com/bartosz-zakrzewski-dev/ts-heap#readme","bugs":{"url":"https://github.com/bartosz-zakrzewski-dev/ts-heap/issues"},"dist":{"shasum":"a1b576d03f8eb9f443fe3bfab4e5b72baa9b5ada","tarball":"https://registry.npmjs.org/@bartosz.zakrzewski.dev/ts-heap/-/ts-heap-1.0.0.tgz","fileCount":11,"integrity":"sha512-9FmNJEXY1pI3hzVRUyBIM0r6WrISqgzgfU3rpUqUtgi677T6NmBBw2VL9RaDFuNAClyxt4oFmHMKbvZIxptOhA==","signatures":[{"sig":"MEUCIQCzAJixtRnAbhtvAKt2zZBUzbYTbx0EX8nd5JdL3B0qGAIgJqOq1CpOEn/Bu22ZxNfQydFJ1popFyWVEWihef+ziG0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13713},"main":"dist/index.js","type":"module","_from":"file:bartosz.zakrzewski.dev-ts-heap-1.0.0.tgz","types":"dist/index.d.ts","scripts":{"test":"vitest run","build":"tsc --build"},"_npmUser":{"name":"bartosz.zakrzewski.dev","email":"bartosz.zakrzewski.dev@gmail.com"},"_resolved":"/tmp/27d902eb3375b8e64656eaed92f92d3f/bartosz.zakrzewski.dev-ts-heap-1.0.0.tgz","_integrity":"sha512-9FmNJEXY1pI3hzVRUyBIM0r6WrISqgzgfU3rpUqUtgi677T6NmBBw2VL9RaDFuNAClyxt4oFmHMKbvZIxptOhA==","repository":{"url":"git+https://github.com/bartosz-zakrzewski-dev/ts-heap.git","type":"git"},"_npmVersion":"11.12.1","description":"Simple max and min heap for Typescript","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/ts-heap_1.0.0_1777807771765_0.527582707831594","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bartosz.zakrzewski.dev/ts-heap","description":"Simple max and min heap for Typescript","keywords":["Heap","TypeScript","MaxHeap","MinHeap"],"author":{"name":"Bartosz Zakrzewski"},"repository":{"type":"git","url":"git+https://github.com/bartosz-zakrzewski-dev/ts-heap.git"},"bugs":{"url":"https://github.com/bartosz-zakrzewski-dev/ts-heap/issues"},"version":"1.0.1","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","type":"module","devDependencies":{"typescript":"^6.0.3","vitest":"^4.1.5"},"scripts":{"build":"tsc --build","test":"vitest run"},"_id":"@bartosz.zakrzewski.dev/ts-heap@1.0.1","homepage":"https://github.com/bartosz-zakrzewski-dev/ts-heap#readme","_integrity":"sha512-zOi1dG2hHUqOLD7DLYFLSgRpiOjaIhlVLySFczdrys0EWCn50e26sRuAXBPqy+9j0lf7/y0qZNzt9U+mJCetlQ==","_resolved":"/tmp/5023882457dcc3e93a35738f5370dc0e/bartosz.zakrzewski.dev-ts-heap-1.0.1.tgz","_from":"file:bartosz.zakrzewski.dev-ts-heap-1.0.1.tgz","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-zOi1dG2hHUqOLD7DLYFLSgRpiOjaIhlVLySFczdrys0EWCn50e26sRuAXBPqy+9j0lf7/y0qZNzt9U+mJCetlQ==","shasum":"a60129d6bed1f63271ca7e2cd571a2cd42030525","tarball":"https://registry.npmjs.org/@bartosz.zakrzewski.dev/ts-heap/-/ts-heap-1.0.1.tgz","fileCount":11,"unpackedSize":13719,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDek5PchuZXMZ+XEa8VOCXjoTcw6LmQ7IGaChk+CFYGXQIhAJYIpxfbsU8tK0HY6N4yPzwRyWkiundmLcFmLIOw/GsS"}]},"_npmUser":{"name":"bartosz.zakrzewski.dev","email":"bartosz.zakrzewski.dev@gmail.com"},"directories":{},"maintainers":[{"name":"bartosz.zakrzewski.dev","email":"bartosz.zakrzewski.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ts-heap_1.0.1_1777809123635_0.5059157989383516"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-03T11:29:31.693Z","modified":"2026-05-03T11:52:03.874Z","1.0.0":"2026-05-03T11:29:31.915Z","1.0.1":"2026-05-03T11:52:03.771Z"},"bugs":{"url":"https://github.com/bartosz-zakrzewski-dev/ts-heap/issues"},"author":{"name":"Bartosz Zakrzewski"},"license":"MIT","homepage":"https://github.com/bartosz-zakrzewski-dev/ts-heap#readme","keywords":["Heap","TypeScript","MaxHeap","MinHeap"],"repository":{"type":"git","url":"git+https://github.com/bartosz-zakrzewski-dev/ts-heap.git"},"description":"Simple max and min heap for Typescript","maintainers":[{"name":"bartosz.zakrzewski.dev","email":"bartosz.zakrzewski.dev@gmail.com"}],"readme":"# Usage\n\n```ts\nimport { MaxHeap } from '@bartosz.zakrzewski.dev/ts-heap';\n\ntype Item = {\n  value: number;\n  key: string;\n};\n\nconst maxHeap = new MaxHeap<Item>();\n\nmaxHeap.add({ value: 7, key: 'A' });\nmaxHeap.add({ value: 4, key: 'B' });\nmaxHeap.add({ value: 8, key: 'C' });\nmaxHeap.add({ value: 5, key: 'D' });\nmaxHeap.add({ value: 6, key: 'E' });\nmaxHeap.add({ value: 3, key: 'F' });\n\nmaxHeap.print();\n```\n","readmeFilename":"README.md"}