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)
}
"