Skip to content

edinsoncs/flag-crypto-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

Canada Korea Germany Australia France European Union Angola Belgium Austria Mozambique Norway Philippines Spain United Kingdom India Costa Rica South Africa Thailand Sri Lanka Sweden Slovenia Papua New Guinea Maldives United States Japan Ireland Bermuda Isle of Man Montenegro Norfolk Island Italy Brazil Iceland Puerto Rico Venezuela Saint Lucia Russian Federation Poland Netherlands China Vietnam Mexico Fiji Gabon Greece Grenada Iraq Israel Kenya Kiribati Latvia Liechtenstein Luxembourg Macedonia Malta Micronesia Martinique Mayotte Nigeria New Caledonia Oman Panama Peru Qatar Samoa Cabo Verde Syria Thailand Ukraine Bulgaria Burkina Faso United Nations

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}/>

Releases

No releases published

Packages

No packages published