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

dsqueue

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsqueue

Dead simple queue implementation (FIFO)

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
5
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

dsqueue

dsqueue stands for dead-simple queue.

Usage

var Queue = require('dsqueue'),
    q = Queue()

q.enqueue({ anyValue: true}) //add first argument to queue
q.dequeue() // { anyValue: true }

q.enqueue(3)
q.enqueue(2)
q.enqueue(1)

q.examine() // [3, 2, 1]
q.length // 3

Tests

There some tests and (horribly wrong) benchmarks, run it with npm test

Keywords

queue

FAQs

Package last updated on 24 Apr 2015

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