Skip to content

Latest commit

 

History

History
executable file
·
37 lines (23 loc) · 1.62 KB

README.md

File metadata and controls

executable file
·
37 lines (23 loc) · 1.62 KB

main-fns

Version Build Status MIT License PayPal

Javascript utility library created with TypeScript

Documentation on https://nabby27.github.io/main-fns/

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 most current libraries of the moment and it will be updated for you.

Installation

Using npm:

npm i main-fns

Some examples

import { addDays, dateToString } from 'main-fns'

addDays(1, new Date(1996, 5, 26)) // new Date(1996, 5, 27)

dateToString('yyyy-MM-dd', new Date(1996, 5, 27)) // '1996-06-27'

Feel free to investigate the main-fns API, it is structured by modules and created using JSDoc.

How to contribute

See de CONTRIBUTING page