If you find this useful, please consider supporting my work with a donation.
The most recent packages are found in these directories:
src- the implementation source code
tests- tests for the implementation source code
These directories contain old implementations that will be replaced eventually, they are just here to avoid confusing people who find this repo through the old blog posts:
data-structures- data structure implementations that have not been updated yet
encodings- encoding implementations that have not been updated yet
algorithms- miscellanous algorithm implementations that have not been updated yet
As I update these, implementations will move from these folders into
- 2009 - the branch containing all of the original implementations as reflected in my 2009 blog post series.
- master - the branch where I'm updating the original implementations to use ECMAScript 2018 and later features.
You must be using Node.js v8 or later.
First, clone the repo:
Then install the dependencies:
$ npm install
You can then run tests like this:
$ npm test
Updated Blog Posts (2019)
These are the most recent blog posts covering the most recent version of the code.
Original Blog Posts
At some point I will update these blog posts for the new implementations. For now, they still refer only to the 2009 version of this code.
Note on Code Style
Issues and Pull Requests
As this is part of series of tutorials I'm writing, only bug fixes will be accepted. No new functionality will be added to this module.