feat: add scripts
This commit is contained in:
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