Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 709 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 709 Bytes

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>