npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

uang

v0.0.4

Published

Indonesian's Money NPM Modules

Downloads

14

Readme

uang

This library serves to process data related to the money Indonesia, diantarnya formatting, the mention to the sentence, to the exchange rate currency

Installation

npm install uang

Usage

require first

you can import or require

 //ES 5
var uang = require 'uang'
//ES 6
import uang from 'uang'

Some function can you call, after you has been import library

Formatter Number
uang.formatter(1000) //Rp 1.000
uang.formatter('5000') //Rp 5.000
Validation
uang.isValid('xx0') //false
uang.isValid('0.0') //false
 uang.isValid('100') //true
ToWords
uang.toWords(10000)) //'Sepuluh Ribu rupiah'
uang.toWords(30000000))//'Tiga Puluh Juta rupiah'
uang.toWords(3566775431)) //'Tiga Miliar Lima Ratus Enam Puluh Enam Juta Tujuh Ratus Tujuh Puluh Lima Ribu Empat Ratus Tiga Puluh Satu rupiah'

exchange

    kurs()
    /* example
    { AUD: 'Rp. 10.069',
  BGN: 'Rp. 7.601',
  BRL: 'Rp. 3.986',
  CAD: 'Rp. 10.056',
  CHF: 'Rp. 13.700',
  CNY: 'Rp. 1.945',
  CZK: 'Rp. 565',
  DKK: 'Rp. 1.999',
  GBP: 'Rp. 16.931',
  HKD: 'Rp. 1.706',
  HRK: 'Rp. 2.008',
  HUF: 'Rp. 48',
  ILS: 'Rp. 3.757',
  INR: 'Rp. 206',
  JPY: 'Rp. 120',
  KRW: 'Rp. 12',
  MXN: 'Rp. 737',
  MYR: 'Rp. 3.103',
  NOK: 'Rp. 1.571',
  NZD: 'Rp. 9.688',
  PHP: 'Rp. 265',
  PLN: 'Rp. 3.513',
  RON: 'Rp. 3.252',
  RUB: 'Rp. 223',
  SEK: 'Rp. 1.522',
  SGD: 'Rp. 9.593',
  THB: 'Rp. 392',
  TRY: 'Rp. 3.789',
  USD: 'Rp. 13.305',
  ZAR: 'Rp. 1.029',
  EUR: 'Rp. 14.866' }
  */

Tests

Will running npm test

Contributing

If you are interested to contribute, you can fork, pull request and even give issue. The upcoming feature is converting rupiah currency into various currencies