Awesome Open Source
Awesome Open Source


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>
  var aSet = new buckets.Set();

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');.


var a = new buckets.Set();
var b = new buckets.Set();
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.

Alternatives To Buckets Js
Select To Compare

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,094,552
Map (32,496
Tree (20,377
Stack (16,047
Dictionaries (11,781
Structure (10,114
Data Structure (9,847
Set (5,908
Linked List (696
Tree Structure (694
Priority Queue (479
Binary Search Tree (285
Binary Search (156
Binary Heap (44
Bag (38
Multimap (18