feat: encode-* decode-* add alias

This commit is contained in:
2026-01-23 00:00:25 +08:00
parent 30af9d34e5
commit 5a8b4c0ac1
5 changed files with 32 additions and 20 deletions

View File

@@ -6,6 +6,9 @@ import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
const flags = parseArgs(Deno.args, {
boolean: ["help"],
string: ["value"],
alias: {
V: "value"
}
});
if (flags.help) {
@@ -24,5 +27,5 @@ const encoded = decodeURI(input);
console.log(encoded);
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260121T234924+08:00.MEYCIQDy8fXEkaASCyzxUPnv
// qCCKWrxFfOIFwxCJXffxpFqUUQIhAJtdK5rcHt6LwxbScRS6GtyYIrlI/cwix786s+IXtwl5
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260122T235937+08:00.MEYCIQCpIqJ+E5Rq42txr21z
// 89Hw017aSUwve29PjvR+zFEONAIhAKY8nSJigFTvpp1jr4quCIEdjOyWP/DCkzzi8KrkjvnZ