What method is available in the Node.js fs module for writing data to a file?
writeFile
Are file operations using the fs module synchronous or asynchronous?
When file is a filename, asynchronously writes data to the file, replacing the file if it already exists. data can be a string or a buffer.