| .. | ||
| mod.ts | ||
| readme.md | ||
-/base
common encodings
import { b } from "-/base/mod.ts";
const hex = b(16, "url");
hex.e("-/base") === "2d2f62";
hex.e(cr.rand(8)) === "f01ad10f6ca4869e";
const secret_message = b(64).d("aW1wb3J0IGIgZnJvbSAiLS9iYXNlL21vZC50cyI=");
const str = new TextDecoder().decode;
secret_message instanceof Uint8Array;
str(secret_message) === `import b from "-/base/mod.ts"`;
dependencies
@std/encoding