0.0.6 • Published 7 months ago
countryflagmin v0.0.6
Get images of Crypto and Country flags
Our module allows you to access SVG images of any country, fetch cryptocurrency data from CoinMarketCap, and search for tokens by address. It supports Ethereum, Arbitrum, and Tron for logo retrieval. Explore and make the most of these versatile features!
Countries
npm install countryflagmin --save
Usage
import
import { Country, Token, Currency } from 'countryflagmin';
Flag
<img src={<Country flag={'pe'} />} width={50}/>
<img src={<Country flag={'ar'} />} width={50}/>
<img src={<Country flag={'ru'} />} width={50}/>
Token Import Logo
<img src={<Token blockchain={'ethereum'} address={'0xdAC17F958D2ee523a2206206994597C13D831ec7'} />} width={50}/>
<img src={<Token blockchain={'arbitrum'} address={'0x13Ad51ed4F1B7e9Dc168d8a00cB3f4dDD85EfA60'} />} width={50}/>
<img src={<Token blockchain={'tron'} address={'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t'} />} width={50}/>
Coin Logo
<img src={<Currency type={'white'} name={'btc'} />} width={50}/>
<img src={<Currency type={'icon'} name={'btc'} />} width={50}/>
<img src={<Currency type={'color'} name={'btc'} />} width={50}/>
<img src={<Currency type={'black'} name={'btc'} />} width={50}/>