Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vhf/bplustree
A B+ Tree ES2015 implementation
https://github.com/vhf/bplustree
Last synced: 17 days ago
JSON representation
A B+ Tree ES2015 implementation
- Host: GitHub
- URL: https://github.com/vhf/bplustree
- Owner: vhf
- Created: 2015-12-08T14:46:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T21:41:34.000Z (almost 6 years ago)
- Last Synced: 2024-10-16T19:23:38.069Z (28 days ago)
- Language: JavaScript
- Size: 597 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bplustree
[![npm version](https://img.shields.io/npm/v/bplustree.svg)](https://www.npmjs.com/package/bplustree) [![Build Status](https://img.shields.io/travis/vhf/bplustree.svg)](https://travis-ci.org/vhf/bplustree) [![Coverage Status](https://coveralls.io/repos/vhf/bplustree/badge.svg?branch=master&service=github)](https://coveralls.io/github/vhf/bplustree?branch=master)Another JavaScript B+ tree implementation.
# Features
* Insert
* Delete
* Fetch
* Fetch ranges
* Fetch as generator
* Check tree invariants# Installation
`npm install bplustree`
# Very Basic Usage (useless)
`const BPlusTree = require('bplustree');`
# Much Better Documentation (useful)
[API / Documentation](https://rawgit.com/vhf/bplustree/master/docs/BPlusTree.html)
# Tests, coverage, etc
- `npm run build` builds the project
- `npm run test` runs most tests
- `npm run test-full` runs all tests
- `npm run coverage` generates most coverage
- `npm run coverage-full` generates full coverage
- `npm run doc` generates the jsdoc documentation# License
MIT
# Acknowledgement
- This implementation is based on @darius' work: [bplustree.py](https://github.com/darius/sketchbook/blob/master/trees/bplustrees.py)
- @tehgeekmeister's notes on [B+ Trees](https://github.com/tehgeekmeister/dadabass/blob/master/notes/b_plus_tree.md) were also very helpful
- The [`_genGetKeyFn`](https://github.com/vhf/bplustree/blob/9e0192dd8d591a7e1a29370edbe5a119a038e0db/lib/bplustree.js#L374-L379) function is courtesy of @martinmaillard