{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2271","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":"b54c2b6fa91a638eef2b199b9a5631e19828a150","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.2271","_nodeVersion":"14.16.1","_npmVersion":"lerna/3.20.2/node@v14.16.1+x64 (linux)","dist":{"integrity":"sha512-WaapibeoQPVd4hnHNOHbbXiz8yczfXA7ESTDURnMTlGUA+gy+3lEoJM9mqo+DGhu2DmHtWryNLHkp8sN59gTMQ==","shasum":"95b4758f678723018cb9397a265bdd712638a1c5","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2271.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\nwsFcBAEBCAAQBQJgifpWCRA9TVsSAnZWagAAI38P/2Y91v6WUw5ihjxcEGRS\nA+0B7Eo0Dhd8dWBsT0KRwfascVaGOxcXfsQ7g4MtbZOH8CyTVYom5G5uqYCN\nHHxvorrLmTJFiRoKaDf8i6V12yrjYZRs/4Lc/FY08mK7AhOB93KrpFSwvejU\nFi+r8XBaa2tYnIHs7/8cs+xTuiZiTsgevfcdd+nA0F4fExuWW88IZ8zoOLLb\nDuPSfJ5lSHwCQPHU7fFdrP1W/h5kB40Uqngc+F58Ww5rDMeFkVn98iCxAdRu\nxLTpifTnqntRYmCltl4Ig2PyXuAzMXPVGX/+5oWQjN+MngHun5aV1l+abeX6\nUnRgueb8LBuFucfsHOl3PkKg+03x7tjsJ+rOzFbVxZIxxwHVwTcqT5Szg7oV\nCDpiocf/ElIHOO6WBihNr83LD+srohuWrTP+Ab3n5dmcQscBxH/NVmaWA7ZX\n0bGPKpToPZsWd7rI9iA3A+FkNicKsJqpxdk323sgrgqnvAWWceAHZfSM7bd0\nXvqb6N/rrN3HGNMijHXCA3g4MMYIJ5GjDIAU4rHwFDg1IyE+RE82MU3fZBME\nBndmTbjqL7lBIp++dKniDsliY7VcQfb2nMH9am3JZBzGRo9TPjXE+f7ZRhH0\npRFRISza8xxTCDg5f9fc3yThOk2CgZ5HhkdkKAzqvXzroQ8/YhNpoYlbBON7\nYYXN\r\n=aNc9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMMwx4QJujByJG7CnaTEVlsTSGJKULUnQLa2QnGQYmJAiEAqfZ1IYfc74oVdu1Evxn2Yjgg4Gz5ckCHxEcCImVtB/U="}],"size":6024,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2271.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.2271_1619655254225_0.6207803267856116"},"_hasShrinkwrap":false,"publish_time":1619655254377,"_cnpm_publish_time":1619655254377,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}