Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-currency-symbol

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-currency-symbol

A simple VueJs library that returns different currency badges.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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. // ¥

Keywords

FAQs

Package last updated on 10 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc