{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2101","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":"ed6b43b673071038fccc637dac50fb9f0a15c7e3","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.2101","_nodeVersion":"14.15.1","_npmVersion":"lerna/3.20.2/node@v14.15.1+x64 (linux)","dist":{"integrity":"sha512-Znp5CF/sqbuaJ/GM/PoGHRIvvS4fTw0JRo6FT0IIitmeZzl0/xo74uZvPIduPy30cjDS7rCVxHr9ODULFWRz/Q==","shasum":"3ad5224f8b782a17e71bb225e5d8b9219849d21d","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2101.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\nwsFcBAEBCAAQBQJf1q6ZCRA9TVsSAnZWagAA+poP/0n2QzSopa+xNx1DkQYO\ncOPBnqQ+iNp50rWKIJ6ppf3oxFgbFbh/9CCrhm1BZLPLO5msItQY2n2EnA8f\n2/q+E1PG/YoSFFg+7ZuK3efiqgG8gKrTqFVgWbCs6tKu8uqgF+RMkvW5hc+p\ned4doQfppLufncfV+xyl3XgZLOVlfi4HK6VmsFlUZJCLyb6xPpRtPmKZjEDa\nXwxIl1eof1RpHtVRv5/vZjsH28KWDzregYo+yFeaaYMAE8ylVMQLoZcuv0FO\np+Q9DxLeqUSvW9xaVS3yHYDT9EladINwzwmVco0orp5KXuRvgsI4KW4Q4ZX2\nk4Djd8bFlsbJ5lR9Q2niWNk0S2dzfkkqSjqy/5zzvmE8sQW8SwvSYklx2Oax\nbzRu5A52bAiQm7RhgrGA15CZUHl3UyaIezvIaUouQjGWVwr4dR4oJjTdkZrD\n2RZgH3Lwqq/cJbSRRFgpjdRjz6Ttv+WLFtAPucTwtqEhZ4qNSq+7pxdibsY6\nFMXHTe7z8+mD+JMTVn/ULWWs8Rpic+R81xSOQDlCM5gmVVAttWjgdaCTVe1Q\nmlQbu5YpjyPh2wDdDXd3JIweKM1BNzpb1QQjat0sIYJ8dD+AT4Fvz2CFCPkT\nSoe/J/fcMhP1sescmqFCqeZnBkwly5VTjvX8U2akNj2hAMK9nk8+vfGT5SoW\nK3Kc\r\n=sqCO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQUuQxWriImKTKZALrC7eNo2/L3hgJn/xCAt8dDb2/8AiB7cT1b7atzvYtbU37szdW36YD7AUVgO2dGRYdZK1Gwcg=="}],"size":6025,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2101.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.2101_1607904920900_0.39965894349092523"},"_hasShrinkwrap":false,"publish_time":1607904921087,"_cnpm_publish_time":1607904921087,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}