This commit is contained in:
2026-02-11 23:02:11 +08:00
parent f40eb40d6b
commit 6a08be3f50
10 changed files with 108 additions and 82 deletions

View File

@@ -1,11 +1,11 @@
#!/usr/bin/env runts -- --allow-env
#!/usr/bin/env runts -- --allow-env --allow-import
import {stdinToArrayBuffer} from "https://script.hatter.ink/@43/deno-commons-mod.ts";
import hjson from "npm:hjson";
import { toArrayBuffer } from "https://deno.land/std@0.203.0/streams/mod.ts";
const input = new TextDecoder().decode(await toArrayBuffer(Deno.stdin.readable));
const input = new TextDecoder().decode(await stdinToArrayBuffer());
console.log(JSON.stringify(hjson.parse(input), null, 4));
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250124T004244+08:00.MEUCIQCmHkkAiwvLHOZpwb+M
// WLEa/guITGU2HD6ZD51SP/vwlgIgAIa/Pudrns1WkKMqn5VsR4/a6vDj1J52CUR/aN+bK8A=
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T225507+08:00.MEUCIGr7QsOMEjjLKp5AOPux
// CtgKZemBdYsqPo8M7ieCmNriAiEA16LCcRqFGrgk7teLSkqICN7XuqJxvy0xCKb1Jz6sZxs=