UNPKG

hd-utils

Version:

A handy utils for modern JS developers

7 lines (6 loc) 269 B
/** * @description It takes a string, converts it to a number, then converts that number to a color * @param {string} str - The string to convert to a color. * @returns A string of the form #RRGGBB. */ export default function stringToHexColor(str: string): string;