atomic-write-stream

0.0.0 • Public • Published

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

Package Sidebar

Install

npm i atomic-write-stream

Weekly Downloads

0

Version

0.0.0

License

MIT

Last publish

Collaborators

  • quarterto