{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2261","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":"e088bfadd9bd7da7fad033e10102118ce73247d7","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.2261","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.20.2/node@v14.16.0+x64 (linux)","dist":{"integrity":"sha512-DvFo8FScZr3Afyay400avNd+mQliPX7eTxc4RScyEdiVTdskLaayV+ZYe/WIHMY/QzOLHNUF3EQMGVc8/6QBhQ==","shasum":"5910e5cfcdf62fc7c91e6c0832e54c5244af59d9","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2261.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\nwsFcBAEBCAAQBQJgc5DhCRA9TVsSAnZWagAAcksQAIKuVtm4z2P5hq+KeRa9\nNVNsgU4HUs0p0g/su1tJbEvp6cisvY/+cvz+nKQjnyLsoxzQ81NIFGGrYQN4\n/UxNRO3vwi2BvhQXyasmFw/nlQNOGvsxlidArs43L8wbVYL6cLT1fd/bnL6f\nIJFuPbbcg/1xzI5lM+XEZYiSDgiuGP+6a47mSh528Kc4RmOVWRuHirmCEUrt\nC1k/+PKwfoTh2l2Fy4tTFEJvef1HIfgNEak0fTE3rZvoOGmbiMduAf+3NzHK\nuNluJmF4EffJLLGRwQ+uCNf5Y8ceYsO7g+a7Av13Oq6N4eXWbjUpwwQZVMER\ny7w6qjAJPAGBC41FB27nrvHysEJWAWZ6zIbpUgRPJ95tnP/dpEk997lnniZA\nqiObxzAQCGbejf8PBndIGDxTmYZDurw5uaVtArFYUsTySLpL5nKr6K+ZLkto\nocB/T/ku/RGkoGyTS9owzS1YINx8zFbdnDO4sufbX0f4mi0hu278z7OuDtep\nj4hqEfyv2S1CmOn6wmImzpCM/Gc6BvDhUN9qetLE3lupfgAAccd4TQ4gcTFF\nA9gAkcVyEuxWf1NsbgqxEQGlirF9p+JFvvy6jQtBniYk488ZDA23NP3EAKgu\nTEFjI8oq7Ukk79FErHq52n6edQ3asB3Vb4YhQ3yZ9PfBnKDVZBsxNxixgLpu\nex/l\r\n=F27X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF066AU0vK8C1QF+tryi2l+giuVxzMrIlZF+bxAPcokFAiEAwTJow3ar4ZBGCU302AW3qwJrMhkSE7+n+MdcR7+Dky4="}],"size":6020,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2261.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.2261_1618186464820_0.8080299266616748"},"_hasShrinkwrap":false,"publish_time":1618186464948,"_cnpm_publish_time":1618186464948,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}