diff --git a/script-meta-v2.json b/script-meta-v2.json index a9b9110..ef766ef 100644 --- a/script-meta-v2.json +++ b/script-meta-v2.json @@ -169,6 +169,15 @@ "publish_time": 1737272626141, "update_time": 1750472965160 }, + "lower.ts": { + "script_name": "lower.ts", + "script_length": 390, + "script_sha256": "17ccc0300d23c16369b090697353a8db0d01c06e15792ec29d71935bbb8b1200", + "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/lower.ts", + "single_script_file": true, + "publish_time": 1775409332534, + "update_time": 1775409332534 + }, "message.ts": { "script_name": "message.ts", "script_length": 1795, @@ -311,6 +320,15 @@ "publish_time": 1775409068941, "update_time": 1775409068941 }, + "upper.ts": { + "script_name": "upper.ts", + "script_length": 390, + "script_sha256": "177be6355cf4fdae3e2d7285090c639fad15f9d2afef0f1ef4e48f580618f7cb", + "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/upper.ts", + "single_script_file": true, + "publish_time": 1775409332538, + "update_time": 1775409332538 + }, "wget.ts": { "script_name": "wget.ts", "script_length": 4076, diff --git a/single-scripts/lower.ts b/single-scripts/lower.ts new file mode 100755 index 0000000..b74e66e --- /dev/null +++ b/single-scripts/lower.ts @@ -0,0 +1,10 @@ +#!/usr/bin/env runts -- --allow-all + +import { stdinToArrayBuffer } from "https://script.hatter.ink/@61/deno-commons-mod.ts"; + +const input = new TextDecoder().decode(await stdinToArrayBuffer()); + +console.log(input.toLowerCase()); + +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260406T011524+08:00.MEQCIAN40qs+EY/2NQG8d00O +// xK2q9+O7mH4+ermrZYE7NNh4AiAILAc0MJ6s2Nb9xbK/BPbk9Pmf9IWehHrijJIblRNjPA== diff --git a/single-scripts/upper.ts b/single-scripts/upper.ts new file mode 100755 index 0000000..d9416e0 --- /dev/null +++ b/single-scripts/upper.ts @@ -0,0 +1,10 @@ +#!/usr/bin/env runts -- --allow-all + +import { stdinToArrayBuffer } from "https://script.hatter.ink/@61/deno-commons-mod.ts"; + +const input = new TextDecoder().decode(await stdinToArrayBuffer()); + +console.log(input.toUpperCase()); + +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260406T011512+08:00.MEQCIFAuPtcUxKnSwZn7kbgV +// 4SV2q7Od5RCGydoj+4jZ9mI4AiAmJC76E/jd3nvN+1rzC+QOX0T1oxwqstpTSy124Dghvg==