All Projects → BosNaufal → terbilang-js

BosNaufal / terbilang-js

Licence: MIT License
Convert Number Into Indonesian Words By Frontend's way

Programming Languages

javascript
184084 projects - #8 most used programming language

Terbilang.js

Simple Javascript Number Converter which is converting number into indonesian words. It's javascript version of this algorithm by @rioastamal

DEMO

Install

Include the terbilang.js to your HTML or web page file, Then it's ready to run. Or you can install via bower by run:

bower install terbilang-js

Or via NPM

npm install terbilang-js

Usage

// Return String
terbilang(1000); // Seribu

// Try with alert
alert(terbilang(9000)); // Sembilan Ribu

// Or use console
console.log(terbilang(5000000)); // Lima Juta

Thanks for your contributions:

Vue User?

You can download terbilang.js as a Vue Filter here. Check it out!

Hopefully this can be useful~

Semoga bisa jadi modal buat pecah telor di pasar lokal :v .

Let's talk about some projects with me

Just Contact Me At:

License

MIT Copyright (c) 2016 - forever Naufal Rabbani

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].