Skip to content

Getting the currency symbol by currency code, country name or currency name

Notifications You must be signed in to change notification settings

enmaboya/symbols-of-currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

symbols-of-currency

Easily obtain a currency symbol by currency code, country name, or currency name

Installing:

npm i symbols-of-currency

Using:

import { getSymbolByCode, getSymbolByCountry, getSymbolByCurrencyName } from 'symbols-of-currency';

<div class="app">
    <div>
        {getSymbolByCode('EUR')}
    </div>
    <div>
        {getSymbolByCountry('Russia')}
    </div>
    <div>
        {getSymbolByCurrencyName('East Caribbean dollar')}
    </div>
</div>

Using via CDN:

<script src="https://cdn.jsdelivr.net/gh/enmaboya/symbols-of-currency@latest/dist/symbols-of-currency.js"></script>

<script>
    console.log(soc.getSymbolByCode('usd'))
</script>

About

Getting the currency symbol by currency code, country name or currency name

Resources

Stars

Watchers

Forks

Packages

No packages published