
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
prioqueuejs
Advanced tools
Priority Queue implementation in typescript.
npm install prioqueuejs
import { PrioQueue, CreateIterator } from "prioqueue";
// initializing with new values
const initialValues = [3, 4, 5];
const queue = new PrioQueue({
compareFn: (a, b) => a - b,
initialValues,
});
// Enqueueing new items
queue.enqueue(12);
queue.enqueue(1);
queue.enqueue(34);
queue.dequeue(); // returns 1
queue.dequeue(); // returns 3
// Using the Iterator
const iterator = CreateIterator(queue);
iterator.next(); // {value: 3, done: false}
// that also means you could use it in a loop
// which will exhaust the iterator and dequeue all
// items from the priority queue
for (const item of iterator) {
console.log(item);
}
// Prints:
// 5
// 12
// 34
FAQs
Priority Queue implementation in typescript.
We found that prioqueuejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.