0.0.13 • Published 5 years ago

@lailao10x/lao-currency v0.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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

5 years ago

0.0.13

5 years ago

0.0.10

5 years ago

0.0.11

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago