Asynchronously writes data to a file, replacing the file if it already exists.
npm install --prod --save fs-writefile-promise
write(filename, data [, options])
When it finishes, it will be fulfilled with the file name that was written to.
When it fails, it will be rejected with an error as its first argument.
The option object will be directly passed to fs.writefile.