Files
ts-scripts/single-scripts/hjson.ts
2025-01-24 00:45:07 +08:00

12 lines
449 B
TypeScript
Executable File

#!/usr/bin/env runts -- --allow-env
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));
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=