symbols-of-currency
v1.0.4
Published
Getting the currency symbol by currency code, country name or currency name
Downloads
67
Maintainers
Readme
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>