A simple VueJs library that returns different currency badges.
npm install vue-currency-symbol # vue-currency-symbol


A simple VueJs library that returns different currency badges.
### Installation
`` Javascript
`
npm install vue-currency-symbol
src/main.js
### Usage
To install the plugin, in your entry file, (this is usually when you initialize
vue-cli
your project using ), install the plugin using Vue.use().
`
javascript
`
// - src/main.js
import Vue from 'vue'
import CurrencyBadge from 'vue-currency-symbol'
...
Vue.use(CurrencyBadge)
...
currencySymbol(countryName)
Use to get the corresponding country currency badge/symbol.
v-html
Also, passing in currency name or country abbreviation would also return the currency badge.
#### Note
Use as a value of directive.
#### Example
Adding to the element you want to use the symbol returns
// ¥`
Japanese Yen symbol.