mauriciosantos/Buckets-JS

A complete, fully tested and documented data structure library written in pure JavaScript.

JavaScript

1,253

102 commits

updated Dec 21, 2020

See the code

README

Buckets

Build Status NPM Version

A JavaScript Data Structure Library

Buckets is a complete, fully tested and documented data structure library written in pure JavaScript.

Included data structures

Buckets also includes several functions for manipulating arrays.

Supported platforms

  • Every desktop and mobile browser (including IE6)
  • Node.js

If it supports JavaScript, it probably supports buckets.

Downloading Buckets

Download directly

Then, add it as a script tag to your page:

<script src="buckets.js"></script>
<script>
  var aSet = new buckets.Set();
</script>

Or install bucketsjs using bower

bower install bucketsjs

Or use an AMD loader

require(["./bower/bucketsjs/buckets.js"], function(buckets) {
  var hm = new buckets.Dictionary();
});

Or install buckets-js using npm

npm install buckets-js

In Node.js: var buckets = require('buckets-js');.

Usage

var a = new buckets.Set();
var b = new buckets.Set();
a.add(1);
a.add(2);
b.add(2);
a.union(b); // {1,2}

Read the documentation.

Building Buckets

There's nothing else you need to use buckets. However, this guide may help you if you wish to contribute to the project or modify it.

bag
binary-heap
binary-search
binary-search-tree
collection
collections
data-structures
dictionary
javascript
linked-list
map
multimap
priority-queue
queue
set
stack
tree
tree-structure

mauriciosantos/Buckets-JS

A complete, fully tested and documented data structure library written in pure JavaScript.

JavaScript

1,253

102 commits

updated Dec 21, 2020

See the code

README

Buckets

Build Status NPM Version

A JavaScript Data Structure Library

Buckets is a complete, fully tested and documented data structure library written in pure JavaScript.

Included data structures

Buckets also includes several functions for manipulating arrays.

Supported platforms

  • Every desktop and mobile browser (including IE6)
  • Node.js

If it supports JavaScript, it probably supports buckets.

Downloading Buckets

Download directly

Then, add it as a script tag to your page:

<script src="buckets.js"></script>
<script>
  var aSet = new buckets.Set();
</script>

Or install bucketsjs using bower

bower install bucketsjs

Or use an AMD loader

require(["./bower/bucketsjs/buckets.js"], function(buckets) {
  var hm = new buckets.Dictionary();
});

Or install buckets-js using npm

npm install buckets-js

In Node.js: var buckets = require('buckets-js');.

Usage

var a = new buckets.Set();
var b = new buckets.Set();
a.add(1);
a.add(2);
b.add(2);
a.union(b); // {1,2}

Read the documentation.

Building Buckets

There's nothing else you need to use buckets. However, this guide may help you if you wish to contribute to the project or modify it.

bag
binary-heap
binary-search
binary-search-tree
collection
collections
data-structures
dictionary
javascript
linked-list
map
multimap
priority-queue
queue
set
stack
tree
tree-structure

Project health

Overall

1.7/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

Significant stargazers

居戎氏

2,588 followers · starred Mar 2013

Will Binns-Smith

743 followers · starred Sep 2021

Viktor

89 followers · starred Dec 2011

Daniel Cassidy

52 followers · starred Apr 2013