priority-queue-ts
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i priority-queue-ts

Weekly Downloads

1

Version

0.4.1

License

MIT

Last publish

Collaborators

  • marcroche