vue-mny

Currency formatting for all currencies, and all languages. As a simple Vue plugin.
755 2
Install
npm install vue-mny
Latest Version:0.3.1
License:MIT
Last Updated:Nov 19, 2020
Links: GitHub  ·  npm
Maintainer: casbloem

vue-mny

Currency formatting for all currencies, and all languages. As a simple Vue plugin.

GitHub last commit GitHub version

npm version npm downloads Build Status

v0.3.1

Setup

npm install vue-mny --save
const vueMny = require('vue-mny');
Vue.use(vueMny, {
    locale: 'en-US',
    currency: 'USD',
    currencyDisplay: 'symbol',
});

Usage

easyway

<span v-mny="moneyVariable"></span>    

withoptions

<span v-mny="{ input: moneyVariable, currency: 'EUR' }"></span>    

// shorthand:
<span v-mny.code="moneyVariable"></span>

Options

{
    locale: 'en-US',
    currency: 'USD',
    currencyDisplay: 'symbol',
}

locale

default: en-US
A string with a BCP 47 language tag.

currency

default: USD

Possible values are the ISO 4217 currency codes, such as USD for the US dollar, EUR for the euro, or CNY for the Chinese RMB.

currencyDisplay

default: symbol
How to display the currency in currency formatting. Possible values are symbol to use a localized currency symbol such as €, code to use the ISO currency code, name to use a localized currency name such as dollar.

Changelog

version 0.3.1

  • Patch

version 0.3.0

  • Major improvements...

Related Packages

vue-money-format

A Vue component that formats currency.

86,236 14
n2cur

Thư viện đọc số tiền thành chữ tiếng Việt & tiếng Anh (VND, USD, EUR, GBP, JPY,...

228 3
vue-formulate-currency

Currency input for vue-formulate

3,649 3
v-money

Vue currency input/directive mask

1,404,492
v-money3

Vue3 currency input/directive mask

866,680 116

Version History

Version Released License
0.3.1 MIT
0.3.0 MIT
0.2.3 MIT
0.2.2 MIT
0.2.1 MIT