Files
ts-scripts/single-scripts/hjson.ts

12 lines
452 B
TypeScript
Executable File

#!/usr/bin/env -S deno run --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.20250123T002653+08:00.MEQCIC+E64MomdWUEPQNhQ3B
// xlLi29D6LLTVBzrbxFlT/KO2AiBvIuAqbA+YzWqNHHCCfG60iE3ZpazAMmXLzKuvC1OzvQ==