feat: add scripts
This commit is contained in:
11
single-scripts/decodeUri.ts
Executable file
11
single-scripts/decodeUri.ts
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env runts --
|
||||
|
||||
import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
|
||||
const input = await toArrayBuffer(Deno.stdin.readable);
|
||||
const encoded = decodeURI(new TextDecoder().decode(input));
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260121T232713+08:00.MEYCIQC5Qkmj03V0nXHS/CVq
|
||||
// UK0RbjEnYEQmsamBc1G0vMpZ4AIhAKzdm2O47MfMVqX8CDaTLAP5Q3FL7Qr7V4idoZmdUBBU
|
||||
11
single-scripts/decodeUriComponent.ts
Executable file
11
single-scripts/decodeUriComponent.ts
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env runts --
|
||||
|
||||
import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
|
||||
const input = await toArrayBuffer(Deno.stdin.readable);
|
||||
const encoded = decodeURIComponent(new TextDecoder().decode(input));
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260121T232720+08:00.MEUCIQDey6Bigi3lt0pKkjqe
|
||||
// qivxSwsQ7iuQqE3L8l0km167XQIgKouhGEMv0efcU2huFRFjNCvluo0/39QVY84aYEfdCLo=
|
||||
11
single-scripts/encodeUri.ts
Executable file
11
single-scripts/encodeUri.ts
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env runts --
|
||||
|
||||
import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
|
||||
const input = await toArrayBuffer(Deno.stdin.readable);
|
||||
const encoded = encodeURI(new TextDecoder().decode(input));
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260121T232616+08:00.MEUCIFR22KcyM6rFopdoq6Ql
|
||||
// XntYCaLLBA3/zMR36jOqsUedAiEAsTvDvWNPAq6IUXRqSge5NZ9Hf7/DnF1hjQjZ6+SZQOg=
|
||||
11
single-scripts/encodeUriComponent.ts
Executable file
11
single-scripts/encodeUriComponent.ts
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env runts --
|
||||
|
||||
import {toArrayBuffer} from "https://deno.land/std@0.203.0/streams/mod.ts";
|
||||
|
||||
const input = await toArrayBuffer(Deno.stdin.readable);
|
||||
const encoded = encodeURIComponent(new TextDecoder().decode(input));
|
||||
|
||||
console.log(encoded);
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260121T232516+08:00.MEYCIQDACv34O4dNEf0su2wk
|
||||
// Lv4+hfZyvbDLPHF8utf2jM3VoAIhAJgrJW75gxZX9Che75cWQN/XB9qvA3MmeAaa9Oo4WWNX
|
||||
Reference in New Issue
Block a user