MATAUANG
Node Package to format integer or string of number to a String of Currency (NOT CURRENCY CONVERSION!)
Node Pakcage untuk mengubah format integer atau string angka ke mata uang (BUKAN KONVERSI MATA UANG!)
CURRENCY LIST / DAFTAR MATA UANG
- Indonesia Rupiah (IDR) :
idr(xxx)
- United States Dollar (USD) :
usd(xxx)
- European Euro (EUR) :
eur(xxx)
- British Pound :
gbp(xxx)
- Japanese Yen :
jpy(xxx)
- Chinese Yuan :
cny(xxx)
- Saudi Riyal :
sar(xxx)
- Russian Rubel :
rub(xxx)
- Danish Krone :
dkk(xxx)
- Swedish Krona :
sek(xxx)
- Swiss (Switzerland) Franc :
chf(xxx)
Example : const money = usd(25000)
Result : $25,000
Install
npm install matauang
Usage
import { idr, usd, gbp, eur, cny, jpy, sar, rub, chf, dkk, sek } from 'matauang' // You can import all currencies available or one of them you need
const money = 25000
const moneys = '20,770'
result1 = usd(money)
result2 = usd(moneys)
Changelog
v1.0.5
- Fix Module Error
v1.0.4
- Remove Logs
v1.0.3
- Fix Type Error
- Simplified function