production-ready data structures implementation in javascript & typescript.
npm install datastructures-js

 
consolidates all data structures @datastructures-js into a single repository.

sh
npm install --save datastructures-js
`$3
`js
const {
Stack,
Queue,
Deque,
EnhancedSet,
LinkedList, LinkedListNode, DoublyLinkedList, DoublyLinkedListNode,
Heap, MinHeap, MaxHeap,
PriorityQueue, MinPriorityQueue, MaxPriorityQueue,
BinarySearchTree, BinarySearchTreeNode, AvlTree, AvlTreeNode,
Trie, TrieNode,
Graph, DirectedGraph,
} = require('datastructures-js');
`$3
`js
import {
Stack,
Queue,
Deque,
EnhancedSet,
LinkedList, LinkedListNode, DoublyLinkedList, DoublyLinkedListNode,
Heap, MinHeap, MaxHeap,
PriorityQueue, MinPriorityQueue, MaxPriorityQueue,
BinarySearchTree, BinarySearchTreeNode, AvlTree, AvlTreeNode,
Trie, TrieNode,
Graph, DirectedGraph,
} from 'datastructures-js';
`$3
Data structures are implemented as ES6 classes (with types definitions) for general purposes. They can be extended for additional functionality and custom requirements.`js
const { Graph } = require('datastructures-js'); // OR require('@datastructures-js/graph')class CustomGraph extends Graph {
findShortestPath(pointA, pointB) {
// more code
}
}
`Build
`
grunt build
``