{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2096","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":"a23db0bb2a545a2e717939dc7cc752170fe12e22","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.2096","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.20.2/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-c2RWgk4/ukuYcuuLfo6YF+vpsx6mDLMEoTsZROrvFdTN04boEdT34b3Y1Hu6UzVWHXT2bds7v53MU2uVZoed3A==","shasum":"da0ffd3870b798f19cafc8dc42b4b3679d4756c3","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2096.tgz","fileCount":14,"unpackedSize":20032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzsVcCRA9TVsSAnZWagAA1VYP/j2um2mAE/E4Sro256I6\nNSNNRyU1wHSJntMDZv2V6nX5VeWBi7GSn2QVZvtvH3A1kRiamDqD1nFVfqFX\nm3VcxMJu66667ox94W3EPF+RxC1m0LZoJvGoQFmaGbmKmKe1F+/Hlfb9MPxJ\nJbKiGWKn0cibEWxKWaYaPlvftMXT9ZbQG1sdaFXOdIr4oaBqLAiGesUwRUFD\nz4nplr/fALf0NGkHGJPGP+/SIEHfEk7zRoXz9KBqYU0WXpv6Cbk9l4a68CVG\n07BC6ziR5GBvh6ZlQPRI4t8nSFgCRL2u+sTg9eQoNc5oXrVxwcyK80SRU2s6\n7yRHVvqbh17UJ/zm0+GIDqmVZP+mVFAtzY+QioxfzMOagSYRErVrOSMEiLkC\nr3BkW2vext+Ozq4V9UukvQEzjP471QQzdVFEpMbhWTKEWEg6YKr/yP5nHEmR\nsXipDCcj9mWfZv4x7GwUSt8NLnBHQDoDec4BVq47hVkNq8UQXHyfxzi34ReE\nHK7a2LFl3JK96cugoMsyuMMZIGLpLnJIMoKhEVY3XANzaOUq7KVRxdwHYuIN\nW3xtvmgOa8qbYBtPeXjAsB06KbKqjx+l9UpKZ1jENx8teWGf5n7SMWJx7C6y\nXTx4elPUU+XxMx3mxbeYNFbqiC93ex8Rjz0Lp5Ow5zlvxJ7hTinnXlBxlNgF\n56ht\r\n=M3jA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFT5XcHfzZ3629mbZWOr3Cw2Ag0VMh7aOAq2VsOngDyeAiA+6LOp9RaIztA/9ruymg/FYUnlrcnEJhKIRdsyJ9Q51A=="}],"size":6026,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2096.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.2096_1607386459604_0.9691840657409596"},"_hasShrinkwrap":false,"publish_time":1607386459802,"_cnpm_publish_time":1607386459802,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}