Skip to content

sidharthmirch/crypto-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Created to replace crypto-color-extractor as it has outdated dependancies and is no longer maintained.

Uses cryptocurrencies as a reference point for currency tickers.

Uses colortheif to generate the color values.

Install:

$ npm install crypto-color

Example usage:

cryptoColor("BTC", false);
// returns "rgb(244,147,27)"

cryptoColor("BTC", true, 0.3);
// returns "rgba(244,147,27,0.3)"

To contribute, please add in your contribution to tracker.md, add it to the json, build index.ts and make a PR.

About

Returns an rgb color string for given crypto names.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors