Skip to content

Commit e6978af

Browse files
authored
Merge pull request #136 from grische/fix/file-reading-with-older-nodejs
fix reading files of version older than nodejs v18
2 parents d8a0826 + 2c1da76 commit e6978af

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
process.stdout.write(jsonToGo(json).go)
495495
} else {

0 commit comments

Comments
 (0)