10 lines
292 B
TypeScript
Executable File
10 lines
292 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));
|
|
|