/terbilang-ts

A simple TypeScript helper for converting numbers to Indonesian words.

Primary LanguageTypeScriptMIT LicenseMIT

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