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 josn5 from "npm:json5";
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(josn5.parse(input), null, 4));
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260109T223356+08:00.MEQCIFVTrvVoTLkQgqdF+reR
// O3fqk6XmeW4hNo/bmUqCpeYFAiBpyK4W7trjpLpV07N2Xb9T+11ok+mn+9qcPV61e3IoHw==
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T225421+08:00.MEQCIByockYjDjHyRGSS4tBa
// tY2PjygZtm3vOmED9mNTJWxWAiApie4KjLckbi0LPqYXqyrBrELxAITeNS1ieW2T9IuDOQ==