vue-currency-symbol

A simple VueJs library that returns different currency badges.
103,666 2
Install
npm install vue-currency-symbol
Latest Version:1.0.2
Vue:2
License:MIT
Last Updated:Oct 10, 2018
Links: GitHub  ·  npm
Maintainer: cejowisz

vue-currency-symbol

NPM

npm version

A simple VueJs library that returns different currency badges.

Installation


npm install vue-currency-symbol

Usage

To install the plugin, in your entry file, (this is usually src/main.js when you initialize your project using vue-cli), install the plugin using Vue.use().

// - src/main.js

import Vue from 'vue'
import CurrencyBadge from 'vue-currency-symbol'

...

Vue.use(CurrencyBadge)

...

Use currencySymbol(countryName) to get the corresponding country currency badge/symbol. Also, passing in currency name or country abbreviation would also return the currency badge.

Note

Use as a value of v-html directive.

Example

Adding <span v-html="currencySymbol('japan')"></span> to the element you want to use the symbol returns Japanese Yen symbol. // ¥

Related Packages

trans-ast

解析html字符串

922
vue-currency-directive

Simple, quick custom directive for handling currency format inside text inputs.

2,646 6
vue-trovimap-wizard

A Vue component for inputting Naira-formatted amounts.

859 0
@agnostico/browser-solidity-compiler

Solidity compiler that works in the browser

1,548 18

Version History

Version Released License
1.0.2 MIT
1.0.1 MIT
1.0.0 MIT