SyntaxFix
Write A Post
Hire A Developer
Questions
All you really need is a good hash function. On node, I just use
const crypto = require('crypto'); function strToColor(str) { return '#' + crypto.createHash('md5').update(str).digest('hex').substr(0, 6); }