{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.1977","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":"e449b1a46d14a64c8be6b6d17132c706e1983a92","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.1977","_nodeVersion":"12.18.2","_npmVersion":"lerna/3.20.2/node@v12.18.2+x64 (linux)","dist":{"integrity":"sha512-wi+pzF6mRMLXPllmSMKeSvkzR7W7J9+FK9tgpMGz+1wbVqRfX7Qf5EaDJc8G7b7eCecpMGI95aFPEmiUh1Lm0g==","shasum":"aa86f7053ff47161391cb042f9e7901e536d10d7","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.1977.tgz","fileCount":14,"unpackedSize":20032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIg/QCRA9TVsSAnZWagAAW3wP/iRjmDBjpXAybKHz04aU\n1C2sB74v6PExr4+xqGahb+HF7pbEDi1GyvFpGEY6ReS0lwCvnqmItyk6aBg7\ndqvwlFHcqPyKNp8zolL+K9uSGx2KfvI8575PODJC8Gxx/WKjUbTbyD+S1g0I\n15TP5xablwAfvC5bPvrIKQFDB1vkOdMhddvw5a8QxUHVquFVKV2snE0LW4Xd\nM0ESr+sIQOgV4H1ENX9TzPSurE6dKVVuUH9RlyNOL0+C5Iodf8iJMxsW6fnT\nLe9cUM0vo17UMnLVtibGE0M/3SPbihos4Qrbv8QzY5sLUPhSrvTZgxFGrzY6\nhgEAxOsuR76zSgS8O8UlH7nJqsr0pMSMJmgcqnDsa5VeEU82Ahndr6zMymeV\n7Sqj+JX4jstiys+Wnv/b2Ow5epw1oVZ0ZEh0Sh33UqMUNexR2zY6kkuNyFfK\nM8HoKLVkfaexLbUwDwHVpQVuBfldAMihMyxNiecglgW5LfgUqwvh5UW/Wj5W\nExClPiHs5gJZuikEP5J4RN7Cfu9XE5AuqrV4LiSpr5NY822sna6cQyuDw05x\nHTWAMzrVpzQ/BipDQNuO7MEAYkdQY16n3rM6PRZ+ZHNrgu+NZyYAejuXCpA5\n9mwnY/YQI30gdTSl0Nqx0UfsrkSyFZ0LRSRj7iuNRpnocfIw74JXALB3DhnS\n/TFs\r\n=dc3I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIcSHUn5EXtNPwUK/RWb3xq3vZbx34uhavXik38/z1qQIhAOxxM2r7lAcZqbkZgUG81HbmHTVphuiJCn2LaoOZFAom"}],"size":6026,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.1977.tgz"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-write-stream-atomic_2.0.0-nightly.1977_1596067791793_0.16098112957677446"},"_hasShrinkwrap":false,"publish_time":1596067791904,"_cnpm_publish_time":1596067791904,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}