@lailao10x/lao-currency

0.0.13 • Public • Published

lao-currency

Convert normal number to currency format.
ປ່ຽນຕົວເລກຈາກທຳມະດາໃຫ້ເປັນຮູບແບບເງີນຕາເຊັ່ນ: ກີບ, ໂດລາ ແລະ ອື່ນໆ

Installation

# using npm
npm install @lailao10x/lao-currency

# using yarn
yarn add @lailao10x/lao-currency

Usage

# ES5
const laoCurrency = require('@lailao10x/lao-currency');

# ES6
import laoCurrency from '@lailao10x/lao-currency';

Example

const getLaoCurrency = laoCurrency(100000).format();
console.log(getLaoCurrency);
// result: 100,000
const getLaoCurrency = laoCurrency(100000).format("S LAK");
console.log(getLaoCurrency);
// result: ₭100,000
const getLaoCurrency = laoCurrency(100000).format("LAK S");
console.log(getLaoCurrency);
// result: 100,000₭

Code and meanings are as follows:

Code Meaning
LAK Lao kip
USD US Dollar
THB Thai Baht
S Symbol ₭ or $

Readme

Keywords

Package Sidebar

Install

npm i @lailao10x/lao-currency

Weekly Downloads

2

Version

0.0.13

License

MIT

Unpacked Size

4.99 kB

Total Files

5

Last publish

Collaborators

  • sksouk
  • joy29lao
  • soulinmaikadua
  • kayengxiong
  • mk89
  • lailaolab