-
debacle
Has somebody a JS implementation of *XEP-0392: Consistent Color Generation* for me? I'm lazy and my JavaScript foo is bar, eh, bad.
-
Martin
Maybe converse?
-
debacle
Martin, AFAIK it doesn't.✎ -
debacle
Martin, AFAIK it doesn't support the standard. ✏
-
debacle
Martin Found something: https://github.com/jsxc/consistent-color-generation
-
MattJ
debacle, there's one in https://matthewwild.co.uk/projects/xep0392-web/ which you can view-source and extract
-
Beherit
I knew I should have postet it again
-
debacle
MattJ Thanks! Both implementations are similar in the way that they use the same libraries js-sha1 and hsluv. Note, that there is hsluv 1.0.0 now with an incompatible API.
-
debacle
Debian still has 0.1.0, the one you are using.
-
MattJ
It is unlikely my implementation will ever be updated while it continues working :)
-
MattJ
Not interested in the JavaScript ecosystem treadmill
-
moparisthebest
debian packages npm packages? yowza that seems like a mistake
-
pep.
debacle, that means if you package 1.0.0 it will get updated :P
-
MattJ
I'm not using the Debian packages 🙂
-
pep.
arf, fail
-
MattJ
curl is my package manager
-
pep.
le best
-
MattJ
(for JavaScript libs)
-
debacle
curl-sudo-sh is much more powerful than apt and npm combined
-
moparisthebest
curl https://burtrum.org/safe.sh | sh