Skip to content

Commit 2c1da76

Browse files
committed
fix reading files of version older than nodejs v18
1 parent 25237b6 commit 2c1da76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json-to-go.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ if (typeof module != 'undefined') {
489489
process.stdout.write(jsonToGo(json).go)
490490
})
491491
} else if (process.argv.length === 3) {
492-
const fs = require('node:fs');
492+
const fs = require('fs');
493493
const json = fs.readFileSync(process.argv[2], 'utf8');
494494
console.log(jsonToGo(json).go)
495495
} else {

0 commit comments

Comments
 (0)