I have a string with hexadecimal code for an object file I have generated in a program previously in my JavaScript file. How can I create an object file with this code, preferably with the fs module?
So far, I've tried using the hex and binary encoding options:
fs.writeFileSync("output.out", program, { encoding: 'hex' })