Files
ts-scripts/single-scripts/decodeUriComponent.ts
2026-01-21 23:28:36 +08:00

12 lines
411 B
TypeScript
Executable File

#!/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=