This is a small project that contains several common computer science algorithms. It helps me both learn JavaScript and practice these algorithms along the way.
The project has a few tests implemented with the mocha testing framework. Continuous integration is done with travis and code coverage is available at coveralls. The default package manager is yarn.
You would need to clone the project with git
and install its dependencies with yarn
:
git clone https://github.com/alisianoi/algos-js
cd algos-js
yarn install
Remove the folder that you cloned from GitHub:
rm -rf algos-js
To run all the unit tests and produce a coverage report:
yarn run test
To run all the unit tests manually without the coverage report:
./node_modules/mocha/bin/mocha --recursive
To run unit tests for a specific module:
./node_modules/mocha/bin/mocha test/test_binsearch.js