feat: encode-* decode-* add alias
This commit is contained in:
@@ -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 = decodeURIComponent(input);
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260121T234931+08:00.MEQCIGtptRwhQ3YN0WarjPH2
|
||||
// d0OIKCq/K1D6vOaRnSUUXP5OAiBnujYtnDlRYpJ4/jQMW8thQHilKyBTSKdr94NtnrsqCA==
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260122T235929+08:00.MEUCIQDtNpI/a8OTsQtqz+C8
|
||||
// XpN1KDs8cDssZCFyRzhqQab3nwIgS7XiDm8mHvwuxSAGOcxGQKd76laaOr1qNdAUP92DRuY=
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = encodeURIComponent(input);
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260121T234554+08:00.MEUCIBu77Jl2kBpnQfz5Us0h
|
||||
// hv9ccvxvsKC0FKEQxRze3z0rAiEArwtUf0JRYQZmEDnpCjQ3SZqy+Fudk7JO3UqNhTJ13hg=
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260122T235939+08:00.MEQCIAQ5xspL/Z+a19RydUte
|
||||
// RRZnxP8wJSNLUFycWtQwJBvOAiAzk+43vb8lLiStnvmxQWN68Ddl2Hy5OodwvKxb2YWM4w==
|
||||
|
||||
@@ -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 = encodeURI(input);
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260121T234929+08:00.MEQCIG0qEsSWVF4pM4fe0Y3M
|
||||
// STeuDjXvq5oN0hhQNaXI7iVyAiBVIZZBwSZUAshkPWIRvD7ll2+JvNunr7RB8Cl8K8Efsw==
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260122T235941+08:00.MEQCIHZDqYuoOnswypoEtmy7
|
||||
// Op3cR/EpGacHSYeOSvZnH6IiAiBr6iTB1eQwlRuHyteapz8xGEh3n7lHC6x2y16d5qCwcQ==
|
||||
|
||||
Reference in New Issue
Block a user