0.0.13 • Published 3 years ago

@lailao10x/lao-currency v0.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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:

CodeMeaning
LAKLao kip
USDUS Dollar
THBThai Baht
SSymbol ₭ or $
0.0.12

3 years ago

0.0.13

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago