https://github.com/nabby27/main-fns
Javascript utility library created with TypeScript
https://github.com/nabby27/main-fns
core fns functions javascript js js-functions js-lib js-library lib libraries library main typescript utilities utils utils-lib utils-library
Last synced: 4 months ago
JSON representation
Javascript utility library created with TypeScript
- Host: GitHub
- URL: https://github.com/nabby27/main-fns
- Owner: nabby27
- License: mit
- Created: 2020-12-17T19:21:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T17:57:54.000Z (about 3 years ago)
- Last Synced: 2025-09-23T14:21:36.310Z (8 months ago)
- Topics: core, fns, functions, javascript, js, js-functions, js-lib, js-library, lib, libraries, library, main, typescript, utilities, utils, utils-lib, utils-library
- Language: TypeScript
- Homepage: https://nabby27.github.io/main-fns/
- Size: 2.66 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# main-fns
[](https://github.com/nabby27/main-fns/blob/main/LICENSE)
[](https://www.npmjs.com/package/main-fns)
[](https://github.com/nabby27/main-fns/actions?query=workflow%3A%22Test%22)
[](https://codecov.io/gh/nabby27/main-fns/branch/main)



[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=M57SG9J5RQ6DJ¤cy_code=EUR&source=url)
Javascript utility library created with TypeScript
## Documentation
Feel free to investigate the [main-fns documentation](https://nabby27.github.io/main-fns/), it is structured by modules and created using JSDoc.
## Why main-fns?
It is quite tedious to be aware of all the dependencies and keep their changes. The idea of main-fns is that you only worry about this library. Main-fns will have all the main functions that are used in a common way such as the handling of dates, texts, arrays, numbers... Internally main-fns will use the best implementation of the moment and it will be updated for you.
## Installation
Using npm:
```sh
npm i main-fns
```
## Some examples
```ts
import { addDays, camelCase, max } from 'main-fns'
addDays(1, new Date(1996, 5, 26)) // new Date(1996, 5, 27)
camelCase('hello world') // helloWorld
max(3, 4, 5, 2) // 5
```
## How to contribute?
See de [CONTRIBUTING](https://github.com/nabby27/main-fns/blob/main/.github/CONTRIBUTING.md) page
## What changes does it have?
Detailed changes for each release are documented in the [CHANGELOG](https://github.com/nabby27/main-fns/blob/main/CHANGELOG.md) page or in [release notes](https://github.com/nabby27/main-fns/releases).
## License
See de [LICENSE](https://github.com/nabby27/main-fns/blob/main/LICENSE) page