6.0.2 • Published 6 years ago
hexify-string v6.0.2
Hexify String
Install
npm install hexify-string
Usage
const { hexifyString } = require('hexify-string');
const hexStr = hexifyString('Hello');
console.log(hexStr); // cb2250
Reason
I saw the website randomstringtocsscolor.com and I thought it was pretty neat!
However, I noticed a lot of duplicates. (e.g. "he" produces #00ee00 , as does "hel"), so, I decided to rewrite it to have fewer duplicates.
Thanks
Many thanks to my friend Julian for taking time to review my code and offer advice.