Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 508 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 508 Bytes

Terbilang TS

A simple TypeScript helper for converting numbers to Indonesian words. Inspired by terbilang-js by Naufal Rabbani.

Installation

You can include the terbilang.ts file in your project directly.

Usage

// Return String
terbilang(1); // Satu
terbilang(10); // Sepuluh
terbilang(100); // Seratus
terbilang(1000); // Seribu
terbilang(10000); // Sepuluh Ribu