1.0.5 • Published 11 months ago

matauang v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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

  1. Indonesia Rupiah (IDR) : idr(xxx)
  2. United States Dollar (USD) : usd(xxx)
  3. European Euro (EUR) : eur(xxx)
  4. British Pound : gbp(xxx)
  5. Japanese Yen : jpy(xxx)
  6. Chinese Yuan : cny(xxx)
  7. Saudi Riyal : sar(xxx)
  8. Russian Rubel : rub(xxx)
  9. Danish Krone : dkk(xxx)
  10. Swedish Krona : sek(xxx)
  11. 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
1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago