feat: add hjson.ts
This commit is contained in:
9
single-scripts/hjson.ts
Executable file
9
single-scripts/hjson.ts
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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));
|
||||
|
||||
Reference in New Issue
Block a user