Ninshu is a modern JavaScript utility library delivering modularity, performance & extras
- 🏀 Declarative: Easy to learn
- ⚛️ Functional: Drove us to functional programming.
- NodeJS 10.x above
yarn add @warungpintar/ninshu
npm install @warungpintar/ninshu
import { currency } from '@warungpintar/ninshu'
import { fold } from 'fp-ts/Either'
import { flow } from 'fp-ts/function'
const formatter = currency()
const moneyPrint = flow(formatter.format, fold(console.log, console.log))
moneyPrint(5000)
//> Rp 5000
moneyPrint('hello world')
//> value should be a number
and boom! 💥
Read reserved api at our official docs here.
What is Ninshu word came from ?
We are inspired by terms in Anime/Manga Naruto. It's way similar to this library goals.
You can read details at https://naruto.fandom.com/wiki/Ninsh%C5%AB
No plans have been made so far to the roadmp. We only support merging from upstream for now.
Feel like contributing? That's awesome! We have a contributing guide to help guide you.