We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25237b6 commit 962ce57Copy full SHA for 962ce57
json-to-go.js
@@ -491,7 +491,7 @@ if (typeof module != 'undefined') {
491
} else if (process.argv.length === 3) {
492
const fs = require('node:fs');
493
const json = fs.readFileSync(process.argv[2], 'utf8');
494
- console.log(jsonToGo(json).go)
+ process.stdout.write(jsonToGo(json).go)
495
} else {
496
process.stdin.on('data', function(buf) {
497
const json = buf.toString('utf8')
0 commit comments