Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/abranhe/allalgorithms-js
- Owner: abranhe
- License: mit
- Created: 2018-10-29T04:34:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-02T22:07:09.000Z (over 5 years ago)
- Last Synced: 2024-10-12T12:14:54.921Z (4 months ago)
- Topics: algorithm, algorithms, allalgorithms, data-structures, javascript, js, math, searching-algorithms, sorting-algorithms
- Language: JavaScript
- Homepage: https://js.allalgorithms.com/
- Size: 27.3 KB
- Stars: 12
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Contributing: .github/contributing.md
- Funding: .github/funding.yml
- License: license
- Code of conduct: .github/code-of-conduct.md
Awesome Lists containing this project
README
> 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 JavascriptRead 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