New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wolf-queue

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wolf-queue

An implementation of a queue data structure

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

Wolf Queue

A lightweight implementation of a queue data structure.|

PropertiesProperty Descriptions
maxreturns the maximum numeric value stored in the queue
lastreturns the last value in the queue
sizereturns the amount of values stored in the queue
Methods (In Constant Time)Method Descriptions
add(value)adds a value to the queue
isEmpty()returns a boolean indicating if the queue has any values
peek()returns the first value in the queue
remove()removes the first value in the queue
clear()removes all values from the queue
Methods (In Linear Time)Method Descriptions
has(value)returns a boolean indicating if the queue contains the passed value
printlogs all the values of the queue to the console as a string
reversereverses the order of the queue in place

FAQs

Package last updated on 16 Feb 2020

Did you know?

Socket

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.

Install

Related posts