Skip to content

algos-all/algos-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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