ease-queue

1.0.0 • Public • Published

Very Simple and Easy Queue Manager

Installation

$ npm i ease-queue

Usage

const queue = require('ease-queue');

or in ES6:

import queue from 'ease-queue';

Examples


// Add something to queue
queue.add({ id: 7, name: 'Leon', amount: 1000 });

// Get something from queue
queue.get('id', 7);

// Remove from Queue
queue.remove('name', 'Leon');

// Update, add score to id 7
queue.update('id', 7, 'score', 20);

// Get the full Queue
queue.all();

// Clear Queue
queue.clear();

Readme

Keywords

Package Sidebar

Install

npm i ease-queue

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.08 kB

Total Files

3

Last publish

Collaborators

  • pedroxam