0.0.0 • Published 10 years ago

atomic-write-stream v0.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

atomic-write-stream

ever tried fs.createReadStream('a.txt').pipe(fs.createWriteStream('a.txt')) and ended up with an empty file? yeah, don't do that. use atomic-write-stream.

npm install atomic-write-stream

works by redirecting your writes to a unique temporary file then renameing it to the target

cheers

inspired by atomic-write except streaming because what is this 2011?

MIT licence, © MMXIV mb