symbols-of-currency
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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>

Package Sidebar

Install

npm i symbols-of-currency

Weekly Downloads

11

Version

1.0.4

License

ISC

Unpacked Size

105 kB

Total Files

13

Last publish

Collaborators

  • enmaboya