https://github.com/onesy-me/algorithms
Algorithms for various use cases
https://github.com/onesy-me/algorithms
algorithm algorithms browser javascript nodejs sorting-algorithms typescript
Last synced: 3 months ago
JSON representation
Algorithms for various use cases
- Host: GitHub
- URL: https://github.com/onesy-me/algorithms
- Owner: onesy-me
- License: mit
- Created: 2022-12-22T00:53:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T23:27:53.000Z (7 months ago)
- Last Synced: 2025-04-14T11:07:55.871Z (3 months ago)
- Topics: algorithm, algorithms, browser, javascript, nodejs, sorting-algorithms, typescript
- Language: TypeScript
- Homepage: https://docs.onesy.me/library/algorithms
- Size: 60.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
onesy Algorithms
Algorithms
MIT license
Production ready
UMD 2.1kb gzipped
100% test cov
Browser and Nodejs
Very simple code
Modern code
Junior friendly
Typescript
Made with :yellow_heart:
## Getting started
### Add
```sh
yarn add @onesy/algorithms
```### Algorithms
- Factorial
- Fibonacci
- Binary search
- Bubble sort
- Selection sort
- Insertion sort
- Merge sort
- Quick sort
- Radix sort
- Naive search
- LPS
- KMP
- etc.### Use
```javascript
import { bubbleSort } from '@onesy/algorithms';const value = [1, 14, 7, 4];
bubbleSort(value);
// [1, 4, 7, 14]
// etc.
```### Dev
Install
```sh
yarn
```Test
```sh
yarn test
```### Prod
Build
```sh
yarn build
```