Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cryptoicons-cdn

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptoicons-cdn

> Cryptocurrencies-related icons served over CDN

  • 0.1.30
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
40
Maintainers
1
Weekly downloads
 
Created
Source

cryptoicons-cdn

Cryptocurrencies-related icons served over CDN

yarn add cryptoicons-cdn

Usage

import getImage from 'cryptoicons-cdn'

const imageUrl = getImage('ETH')

If you pass the string dark as a second param, it will return an alternative whitescale icon if available to work on darker backgrounds.

Colors

import getColor from 'cryptoicons-cdn/getColor'

const color = getColor('MFT')

Will return the vibrant or main color of the logo of the given ticker. By default, it fallbacks to #232323 if no defined color has been found. Pass false as a second parameter to disable it.

FAQs

Package last updated on 02 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc