nodejs-docs-samples icon indicating copy to clipboard operation
nodejs-docs-samples copied to clipboard

texttospeech/quickstart.js change the file to use fs/promises

Open andriotisnikos1 opened this issue 1 year ago • 0 comments

hello! ive noticed that texttospeech/quickstart.js uses fs.writeFile synchronously, and is then promisified with 'util.promisify'. why not just use 'fs/promises' and not just 'fs'? it does the same thing, and the code is more understandable. lmk your opinion google team!

andriotisnikos1 avatar Sep 15 '23 13:09 andriotisnikos1