Skip to content

rohmanhm/terbilang-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terbilang.ts

Greenkeeper badge Build Status

Simple Typescript/Javascript Number Converter which is converting number into indonesian words.

Install

  • via npm:
npm install terbilang-ts --save
  • via yarn:
yarn add terbilang-ts

Usage

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

API

Terbilang(number) => string
  • number: type number. example: 10000

License

MIT Copyright (c) 2018 - MH Rohman Masyhar

About

🤞 Convert number into indonesian words.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published