jdev - 2022-11-14


  1. 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.

  2. Martin

    Maybe converse?

  3. debacle

    Martin, AFAIK it doesn't.

  4. debacle

    Martin, AFAIK it doesn't support the standard.

  5. debacle

    Martin Found something: https://github.com/jsxc/consistent-color-generation

  6. MattJ

    debacle, there's one in https://matthewwild.co.uk/projects/xep0392-web/ which you can view-source and extract

  7. Beherit

    I knew I should have postet it again

  8. 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.

  9. debacle

    Debian still has 0.1.0, the one you are using.

  10. MattJ

    It is unlikely my implementation will ever be updated while it continues working :)

  11. MattJ

    Not interested in the JavaScript ecosystem treadmill

  12. moparisthebest

    debian packages npm packages? yowza that seems like a mistake

  13. pep.

    debacle, that means if you package 1.0.0 it will get updated :P

  14. MattJ

    I'm not using the Debian packages 🙂

  15. pep.

    arf, fail

  16. MattJ

    curl is my package manager

  17. pep.

    le best

  18. MattJ

    (for JavaScript libs)

  19. debacle

    curl-sudo-sh is much more powerful than apt and npm combined

  20. moparisthebest

    curl https://burtrum.org/safe.sh | sh