StableLib: A stable library of useful TypeScript/JavaScript code (github.com) 3 points by joshxyz 3y ago ↗ HN
[–] joshxyz 3y ago ↗ I'm currently using some parts of it for implementing an HS256 JWT library for Browser and Node.js environment.The best part is everything is modular, stable, and readable and well-documented code. [–] joshxyz 3y ago ↗ Done lol! Works as expected.Now I have a JWT library I can use for both Browsers (Chrome, Firefox, Safari) and Node.js.Code: https://github.com/crestfall-sh/modules/blob/main/hs256.mjsCode tests: https://github.com/crestfall-sh/modules/blob/main/hs256.test...
[–] joshxyz 3y ago ↗ Done lol! Works as expected.Now I have a JWT library I can use for both Browsers (Chrome, Firefox, Safari) and Node.js.Code: https://github.com/crestfall-sh/modules/blob/main/hs256.mjsCode tests: https://github.com/crestfall-sh/modules/blob/main/hs256.test...
2 comments
[ 4.4 ms ] story [ 18.4 ms ] threadThe best part is everything is modular, stable, and readable and well-documented code.
Now I have a JWT library I can use for both Browsers (Chrome, Firefox, Safari) and Node.js.
Code: https://github.com/crestfall-sh/modules/blob/main/hs256.mjs
Code tests: https://github.com/crestfall-sh/modules/blob/main/hs256.test...