Convert text to hex color codes with JS String.prototype
method.
https://daddybannk.github.io/to-color-string
<script src="to-color-string/dist/index.js"></script>
npm i to-color-string
import "to-color-string";
// case: empty string
console.log("".toColorString());
// "#d41d8c"
// case: single character
console.log("h".toColorString());
// "#2510c3"
// case: sentence
console.log(`Hello, is it me you're looking for?`.toColorString());
// "#b1f23d"
npm i -D
npm run test
This project is licensed under the terms of the MIT license.