{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2081","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":"0247770e83394ad44fb755cbe8b20e56a65fc580","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.2081","_nodeVersion":"14.15.0","_npmVersion":"lerna/3.20.2/node@v14.15.0+x64 (linux)","dist":{"integrity":"sha512-nYJtJiaDJTTal40Iho9Dk0UWyTwfZafbL+9+S66T26ct+7zKvIyVslo8K9MiZ76fdE5VPn8XMgd0w/jfKe9AYQ==","shasum":"f6049df596eacb80e05e2fcde9fc692dfbc2d094","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2081.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\nwsFcBAEBCAAQBQJfua0TCRA9TVsSAnZWagAAPvUP/1sYzcBjKLGAo8T4r72h\nwO2wcNJszSfRVPxZ/NmpWmrzqSiButFHGwNgtJv96j4bde7ARTL+kcHLiIWA\nl+c6n+bAaT7DsB6J1MA8qZe6wOfpCmvZ5rjMTy00x+wYDSOhoDEunPO4GGKD\nd9tacdX2lDAVhumfhtq3MuNYXT+AXSkgaqD+9OBUOQAa33Yht+I72vXC4gJL\nw/Mw9PU0YhBu/v24G/30T4vv86DP7KBHSEYGnveHWB4bhaLMhTfZwfTthd/Z\nAvTNwi+2+l3vscdO7y+riczFoNUxXxctbga7kdDGytTJ0xN9PuVxNK3dRj0+\nEkxcVlqdtgc9VEyyIQchtXZxzln4uTQ/El/ukKzEe95JYG2GDmnHSOr63qvL\nh7da+wn56++HeTaQwIHaVtohSe70TJOEkruMf9ASK8bNLNiHbkdE2hjY7fGu\niwkI/RNHoCfZrbP0MOzmesFA7bNZQ3Cv4/9gQUyEXqvQ1H6MP4AQBRbJT792\nFitByYW1n/dk+4w44VtdnzKn2juJCELvfmEYYCN+acVD56Gmf+6ylHMtx0mQ\nPY2b2qfjHZNiDoMK2V7Sm23rksoNH41SwPKeIH5XKQiAIa2rdUhCkvwo+sSI\nAuytDGT4DdHpQwgJnfyOQDWEA97INFvmXqrbNrWTzvnFHLFCqx5zaxtqglE5\n4tHQ\r\n=XY0I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZvfSP9wbKcTO+yKgGbpeL0+iOdctb0lgUuqb8Ca7qzwIgC2fSYcxSiGRz8Flu+y0Mn5Z0ThLBocpNCiRzbqxYMFM="}],"size":6026,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2081.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.2081_1606003986870_0.367133322087567"},"_hasShrinkwrap":false,"publish_time":1606003987000,"_cnpm_publish_time":1606003987000,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}