🧮 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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help