Answer the question
In order to leave comments, you need to log in
Does fs.writeFileSync have a callback?
Good afternoon, I need a callback for fs.writeFileSync
But I get an error if I call something like this
fs.writeFileSync("/tmp/img/"+convert(artist)+".png", body, 'binary', function(err) {
if(err){
console.log('err');
}
})
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