Answer the question
In order to leave comments, you need to log in
Why does nodejs fs.writeFileSync write buffer to file?
I have an object and I want to write it to a file, for this I use:
fs.writeFileSync("./profiles/"+new_user_id+"/user_info.json", JSON.stringify(new_user), 'utf8');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question