This repository has been archived on 2023-01-08. You can view files and clone it, but cannot push or open issues or pull requests.
ptrcports/jsq/jsq
2022-05-07 22:57:33 +02:00

11 lines
220 B
Bash

#!/bin/sh
exec qjs --std -e "
var input = JSON.parse(std.in.readAsString())
var output = input$@;
if (typeof output === 'object') {
console.log(JSON.stringify(output, null, 2))
} else {
console.log(output)
}
"