🧮 Introducing number-to-words-id — Convert Numbers to Words in 3 Languages
dev.to·1d·
Discuss: DEV

🧮 I Built a Library to Convert Numbers into Words in 3 Languages

Have you ever needed a “terbilang” function in your project? When I worked on billing and invoice systems, I realized that most libraries only support English — none for Indonesian or Malay. So I decided to create number-to-words-id.

It’s a lightweight Node.js library that converts numbers into words in Indonesian, Malay, and English — all offline, no dependencies.


🚀 Quick Example

import { toWords } from "number-to-words-id";

console.log(toWords(75000));
// "tujuh puluh lima ribu"

console.log(toWords(75000, { lang: "en" }));
// "seventy-five thousand"

console.log(toWords(75000, { lang: "ms" }));
// "tujuh puluh lima ribu"

–…

Similar Posts

Loading similar posts...