11 lines
220 B
Bash
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)
|
|
}
|
|
"
|