savefile Save anything to file atomic. Install $ npm i save-file-atomic --save Usage const savefile = require('save-file-atomic'); // anything can be: ReadStream, Buffer, String// target is the target file pathawait savefile(anything, target); // copy file atomicawait savefile.copy(source, target); Questions & Suggestions Please open an issue here. License MIT