string-to-hex-color

Converts string to hex color with black/white complement

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
string-to-hex-color
101.0.05 years ago5 years agoMinified + gzip package size for string-to-hex-color in KB

Readme

string-to-hex-color npm version
Takes a string and returns a hex color and it's black/white complement

Install

npm install string-to-hex-color

Usage

var stringToHexColor = require('string-to-hex-color');
console.log( stringToHexColor('Teemo') ) // [ '#9628cf', '#FFFFFF' ]

License

MIT