Skip to content

Commit

Permalink
Add globalThis.base85
Browse files Browse the repository at this point in the history
  • Loading branch information
AlttiRi committed Jul 25, 2024
1 parent 7aeccc0 commit 435f3ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions online.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
import {decode, encode} from "./base85.js";
globalThis.decode = decode;
globalThis.encode = encode;
globalThis.b85 = {decode, encode};
globalThis.base85 = globalThis.b85 = {decode, encode};
globalThis.util = util;

const consoleCss = "color: #0D6EFD; font-weight: bold;";
console.log("%c Use the global `b85` object:", consoleCss, globalThis.b85);
console.log("%c Use the global `base85` object:", consoleCss, globalThis.base85);
console.log("%c Or just the global `encode` and `decode` functions from it.", consoleCss);
console.log("%c Also, util functions from the `util` object:", consoleCss, Object.keys(util));
</script>
Expand Down

0 comments on commit 435f3ab

Please sign in to comment.