diff --git a/script-meta-v2.json b/script-meta-v2.json index 6a17ecc..a9b9110 100644 --- a/script-meta-v2.json +++ b/script-meta-v2.json @@ -302,6 +302,15 @@ "publish_time": 1769361581018, "update_time": 1769705771521 }, + "trim.ts": { + "script_name": "trim.ts", + "script_length": 383, + "script_sha256": "b6fcabb93f2897823c67fba95968f54127ba93f67371c0156efff3dbb86ab3a0", + "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/trim.ts", + "single_script_file": true, + "publish_time": 1775409068941, + "update_time": 1775409068941 + }, "wget.ts": { "script_name": "wget.ts", "script_length": 4076, diff --git a/single-scripts/trim.ts b/single-scripts/trim.ts new file mode 100755 index 0000000..cc8ca2b --- /dev/null +++ b/single-scripts/trim.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.trim()); + +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260406T011018+08:00.MEQCICGZsgnG2bowizRaqJcD +// pAguPjyV9zam3gadSDF9MqUwAiANMI4ruImBUecq8S4nZ71BKPGg4BdDb2NZMzVPWFClHg==