Skip to content
A library implementing several standard data structures and utilities, in JavaScript. Its written and tested using Node.js which is the target platform.
JavaScript Shell
Find file
Latest commit 110f6fa @monmohan Merge pull request #11 from calebTomlinson/patch-1
Markdown error in README.md

README.md

dsjslib

This is a collection of different data structures and utilities, implemented in JavaScript. Its written and tested using Node.js which is also the target platform.

API Documentation >>

Overview

  • New

    • Bloom Filter

      - Probabilistic data structure to test whether an element is a member of a set.
  • Maps

    • Sorted Maps

      Maps sorted according to natural ordering of keys or by comparator function provided at creation time. Two different backing stores are available
    • Tries

      Map optimized for prefix searching on string keys
    • Multi-Valued

      Map supporting multiple values for a key
  • Queues

  • Utilities

    • LRU Cache with Stats

      Google Guava inspired LRU cache. Reference: Google Guava. In-memory LRU cache implementation for Node, inspired by Google Guava Loading Cache . The cache is simpler since it doesn't have to deal with concurrent threads, but other functionality of Guava cache are captured like

    • BitSet

      - An array of bits with operations to set, examine and clear individual bits

    • CircularBuffer

      - A data structure that uses a single, fixed-size buffer as if it were connected end-to-end. When the buffer is filled, new data is written starting at the beginning of the buffer and overwriting the old.
    • Bloom Filter

      - Probabilistic data structure to test whether an element is a member of a set.
    • BTree

      - Self balancing generalized Search Tree

Installation

    npm install dsjslib

Current version 0.6.14 is stable and thoroughly tested on Node v0.10

Something went wrong with that request. Please try again.