From 9e181697442f963fbbb0d7aa1fadc54802cf9410 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Mon, 6 Apr 2026 01:15:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=95=20Add=20metadata=20entries=20for?= =?UTF-8?q?=20`lower.ts`=20and=20`upper.ts`=20scripts=20in=20`script-meta-?= =?UTF-8?q?v2.json`=20while=20introducing=20corresponding=20script=20files?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-meta-v2.json | 18 ++++++++++++++++++ single-scripts/lower.ts | 10 ++++++++++ single-scripts/upper.ts | 10 ++++++++++ 3 files changed, 38 insertions(+) create mode 100755 single-scripts/lower.ts create mode 100755 single-scripts/upper.ts 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==