Skip to content

A priority queue data structure for Node.js and the browser written in TypeScript.

License

Notifications You must be signed in to change notification settings

marcroche/priority-queue-ts

Repository files navigation

priority-queue-ts

Build status NPM version Test coverage NPM downloads License

A simple priority queue data structure for Node.js and the browser written in TypeScript.

Installation

As npm for Node.js:

$ npm install priority-queue-ts

If you just want a pre-built file for using in the web, check the releases section.

Example

import { 
    MinPriorityQueue,
    MaxPriorityQueue, 
    QueueItem } from 'priority-queue-ts';

class Item extends QueueItem {
    public value = 1;
    public label = 'one';
}

let queue = new MinPriorityQueue();

let item = new Item();

queue.push(item);

Licence

MIT

About

A priority queue data structure for Node.js and the browser written in TypeScript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published