Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abranhe/allalgorithms-js

The All ▲lgorithms Javascript Library
https://github.com/abranhe/allalgorithms-js

algorithm algorithms allalgorithms data-structures javascript js math searching-algorithms sorting-algorithms

Last synced: 3 months ago
JSON representation

The All ▲lgorithms Javascript Library

Awesome Lists containing this project

README

        






Ink


js.allalgorithms.com


> The All ▲lgorithms Javascript Library.

[![Build Status](https://github.com/abranhe/allalgorithms-js/workflows/tests/badge.svg)](https://github.com/abranhe/allalgorithms-js/actions)
[![](https://img.shields.io/github/license/abranhe/allalgorithms-js.svg)](https://github.com/abranhe/allalgorithms-js/blob/master/license)
[![](https://cdn.abranhe.com/projects/algorithms/badge.svg)](https://github.com/allalgorithms)
[![](https://img.shields.io/npm/v/allalgorithms.svg)](https://github.com/abranhe/allalgorithms/allalgorithms-js)

## Why?

- Why not 😂
- Clean and focused
- Actively maintained
- Because All Algorithms should be easy to use in Javascript

Read the detailed documentation at [js.allalgorithms.com](https://js.allalgorithms.com) or see the [`docs`](https://github.com/abranhe/allalgorithms-js/blob/master/docs) directory on Github. See [Tree](#tree).

**Want to contribute?** [GET STARTED HERE](https://github.com/abranhe/allalgorithms-js/tree/master/.github/contributing.md)

## Install

```
npm install allalgorithms
```

## Usage Example

```js
const allalgorithms = require('allalgorithms');

arr = [77, 2, 10, -2, 1, 7]

console.log(allalgorithms.sorting.bubbleSort(arr));
// -> [-2, 1, 2, 7, 10, 77]
```

## Tree

- **Sorting**
- [Bubble Sort](https://js.allalgorithms.com/sorting/bubble-sort)
- [Merge Sort](https://js.allalgorithms.com/sorting/merge-sort)

## Related

- [allalgorithms-python](https://github.com/abranhe/allalgorithms-python): All ▲lgorithms Python library
- [allalgorithms-java](https://github.com/abranhe/allalgorithms-java): All ▲lgorithms Java library

## Maintainers

|[![Carlos Abraham Logo][3]][4]|
| :--------------------------: |
| [Carlos Abraham][4] |

## License

[MIT][5] License © [Carlos Abraham][4]

[1]: https://cdn.abranhe.com/projects/algorithms/badge.svg
[2]: https://github.com/abranhe/allalgorithms-js
[3]: https://avatars3.githubusercontent.com/u/21347264?s=50
[4]: https://github.com/abranhe
[5]: https://github.com/abranhe/allalgorithms-js/blob/master/license