safe-file-write (npm): Write to a file, making sure it's parent folders exist, and that if the write operation is cancelled mid-writing, it does not corrupt any possible file there previously.
Keywords: fs|write|files|safe