Simple Typescript/Javascript Number Converter which is converting number into indonesian words.
- via npm:
npm install terbilang-ts --save
- via yarn:
yarn add terbilang-ts
Typescript user
import Terbilang from 'terbilang-ts'
console.log(Terbilang(1100000)) // Satu Juta Seratus Ribu
Javascript user
import Terbilang from 'terbilang-ts' // Babel with es6
const Terbilang = require('terbilang-ts').default // with es5
console.log(Terbilang(1100000)) // Satu Juta Seratus Ribu
Terbilang(number) => string
number
: typenumber
. example:10000
MIT Copyright (c) 2018 - MH Rohman Masyhar