{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2159","description":"Like `fs.createWriteStream(...)`, but atomic.","main":"index.js","directories":{"test":"test"},"funding":{"type":"opencollective","url":"https://opencollective.com/parcel"},"publishConfig":{"access":"public"},"dependencies":{"graceful-fs":"^4.1.2","iferr":"^1.0.2","imurmurhash":"^0.1.4","readable-stream":"1 || 2"},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","gitHead":"49ac217507d5914a2e38ca402593d26527cdb673","readme":"# fs-write-stream-atomic\n\nLike `fs.createWriteStream(...)`, but atomic.\n\nWrites to a tmp file and does an atomic `fs.rename` to move it into\nplace when it's done.\n\nFirst rule of debugging: **It's always a race condition.**\n\n## USAGE\n\n```javascript\nvar fsWriteStreamAtomic = require('fs-write-stream-atomic');\n// options are optional.\nvar write = fsWriteStreamAtomic('output.txt', options);\nvar read = fs.createReadStream('input.txt');\nread.pipe(write);\n\n// When the write stream emits a 'finish' or 'close' event,\n// you can be sure that it is moved into place, and contains\n// all the bytes that were written to it, even if something else\n// was writing to `output.txt` at the same time.\n```\n\n### `fsWriteStreamAtomic(filename, [options])`\n\n- `filename` {String} The file we want to write to\n- `options` {Object}\n  - `chown` {Object} User and group to set ownership after write\n    - `uid` {Number}\n    - `gid` {Number}\n  - `encoding` {String} default = 'utf8'\n  - `mode` {Number} default = `0666`\n  - `flags` {String} default = `'w'`\n","readmeFilename":"README.md","_id":"@parcel/fs-write-stream-atomic@2.0.0-nightly.2159","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.20.2/node@v14.15.4+x64 (linux)","dist":{"integrity":"sha512-jA5nmaLWQzopESsxJnKmuQLdgXwToZk8dOXHdP0+BUaaLyyI09eRpmdLE0UCT1U2b0xtwfxPcm0RUEkgqM90Pg==","shasum":"27a524cde2d49d3c4df1639bf3277637480d3797","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2159.tgz","fileCount":14,"unpackedSize":20030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAOZ+CRA9TVsSAnZWagAAMXUP/3YeVxjH7ygkjZI8zIaj\nT9hYpIBuaq8nUd9zww6R58p68lPufv4bDLgtB4WrR15e+JxZPn6RrBV+gRro\noEntguvjL6E2+iKHHtnPMiGcMospWDaPFN1RZ0/RMXMlJdBrlhXlT32vjWzr\n5eJ6oay4bUifSqBSUZnzYU9e8cbaopeVGzHl3yPmPEI46v9RDYvunl8pXwGG\nFHH5iD4krKnaI36p5OZQQxyodUOQLh5IgwjWTovH0+gGKqG+o8mSSSVMC1JG\nQO7e/p9caBq7FKwa7nC5lg4UVNbIwVKMGbPKj83pbZ+ra4r40d78yrHXMG8H\nns18DYiT4Tjx1ppSNHIyBweiqG+b0QFBzeaDpJtORpx/ueq8O/wZJQ8Cug1t\ngbanvpbnlFFqwxIfXYoHoUco4Baibq+YgMPFG30Bgrql9E/q+tdFosQzfXX/\nu0ajdUhdY33vxg5mcJqoFJKIIUKskQsHVo3Zo1r69WRsHtyuvGosYNVXa5Bh\nIY81nTaRrKZ9xRy7n2MJD4ic1xyPvCfVbf2TZ5RWXmMIyXg8vJ0sQ1J98iqx\nadVhoSh+XwErOfW2SgF42DMdyHv5fCejA4FYdooz7hdBKRkm8XJ7NO9zsvEw\nYHwGvLw382s2UDwYFuqdaPY5Xjb4B6wa+tLQDiLCiXkb+vMfnza3MDo1A6f0\nUh2l\r\n=SXzW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICf5+NnVGn6OQ3ow/l3+GFg1kgAmW/8ZKaEM66hv7vaxAiB142oiIVMbIqiJfdJj8uD6Myk2wU2HGg7CqESs3BP2JA=="}],"size":6024,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2159.tgz"},"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-write-stream-atomic_2.0.0-nightly.2159_1610671742263_0.6581654114873219"},"_hasShrinkwrap":false,"publish_time":1610671742383,"_cnpm_publish_time":1610671742383,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}