
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@utilityjs/queue
Advanced tools
A First-In-First-Out (FIFO) queue data structure.
npm install @utilityjs/queue
or
pnpm add @utilityjs/queue
import { Queue } from "@utilityjs/queue";
const queue = new Queue<number>();
queue.enqueue(1);
queue.enqueue(2);
queue.enqueue(3);
queue.peek(); // 1
queue.dequeue(); // 1
queue.dequeue(); // 2
queue.isEmpty(); // false
Queue<T>new Queue<T>() - Creates an empty queueisEmpty(): boolean - Check if the queue is emptyenqueue(value: T): void - Add element to the reardequeue(): T | null - Remove and return the front elementpeek(): T | null - View the front element without removingRead the contributing guide to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.
This project is licensed under the terms of the MIT license.
FAQs
An implementation of Queue data structure.
The npm package @utilityjs/queue receives a total of 2 weekly downloads. As such, @utilityjs/queue popularity was classified as not popular.
We found that @utilityjs/queue 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.