updates
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
#!/usr/bin/env runts --
|
||||
#!/usr/bin/env runts -- --allow-import
|
||||
|
||||
import {args, exit} from "https://script.hatter.ink/@41/deno-commons-mod.ts";
|
||||
import {parseArgs} from "jsr:@std/cli/parse-args";
|
||||
import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
|
||||
const flags = parseArgs(Deno.args, {
|
||||
const flags = parseArgs(args(), {
|
||||
boolean: ["help"],
|
||||
string: ["value"],
|
||||
alias: {
|
||||
V: "value"
|
||||
}
|
||||
V: "value",
|
||||
},
|
||||
});
|
||||
|
||||
if (flags.help) {
|
||||
console.log("echo value | decode-uri.ts");
|
||||
console.log("decode-uri.ts --value <value>");
|
||||
Deno.exit(0);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
let input;
|
||||
@@ -27,5 +28,5 @@ const encoded = decodeURI(input);
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260122T235937+08:00.MEYCIQCpIqJ+E5Rq42txr21z
|
||||
// 89Hw017aSUwve29PjvR+zFEONAIhAKY8nSJigFTvpp1jr4quCIEdjOyWP/DCkzzi8KrkjvnZ
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T223656+08:00.MEUCIQD2Z+EYNFmlGJF1mRwZ
|
||||
// WtcimdYPCpkEiGWJ2nCoEFZhSAIgIcokRXUdswb+o/tjq098FbaBSRu2xk8t1qgKvBFp3hw=
|
||||
|
||||
Reference in New Issue
Block a user