Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 1.85 KB

README.md

File metadata and controls

75 lines (47 loc) · 1.85 KB

Module algos-js

Travis Coveralls npm license

What is algos-js?

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.

How to install?

Installing from GitHub

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

How to uninstall?

After installing from GitHub

Remove the folder that you cloned from GitHub:

rm -rf algos-js

What algorithms are ready?

How to test?

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