{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.1962","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":"8d64328859b787164e596a2140cccfa320e3a799","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.1962","_nodeVersion":"12.18.1","_npmVersion":"lerna/3.20.2/node@v12.18.1+x64 (linux)","dist":{"integrity":"sha512-RWDgIgUwNV4YYkl7AoMlI1j2kBKQpjHW8JJ7kdVD+544OHHLABj6BbrAt/u9WlnXVjEEDhjrRYvIeYe3MztaqQ==","shasum":"39b8adad70a14be1d791b52fae272d05c4da103d","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.1962.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\nwsFcBAEBCAAQBQJfDPegCRA9TVsSAnZWagAAfnQP/0S7LZrvuRNBzxTghG8+\nmtgHQxA4+8YKmj+pC2thDUbbZkD3fT8o3OLIObxP+nBYzc1vHQSD8HRG2Zaz\nVsj2DBVMmylbFw+0FagJ5XWQWUqNRy23j7d4AHpIV9zaU+52HXrhJXgPnKCA\nG79NjvyH5O30qHqzTTVWEZd2bohGVRE5EOjFhg/AVa2SdTaoPrZFL3WyG+wx\nv74edMNE80u4LfOF7aXvIb7b36SsQLtvHMh3xT+9Pve/0cNdDf+2yX3RKFKS\ns3vIBlblezk3ietswcpkuod3JWXO6hC0d2PcOFP7b1MpMQFVtXVtbRiKQpBR\nGhEgfTfcYBgckfWsdNiXCq9L3FCM7L0PWrbS/av2U5Hsg/LaRMmXPkcvtrWn\nbr23eOIKspX/uHlvquj0L/aQiXINvo9Rt89UUFWihaw9774bTDVEov1eAuJP\n6HU/1rI2MngWXbCVLa9iLXLsudIpRYBDfepY87attnLvpdIOcbKD9fr90sDc\nU9yuVsFoXMkjceT2XeX2uaz2xIv0vHpAlDI5kvq05v+K6DddZ9pddV0cRzik\nXRGfFupkBJsFX8HRr41LxnU8GU7p5zWAQGOwhfphl7Pw5eJGCsOMeWpwWHLM\nAIaYBT7Sbh0qltM4vUk9FHMZ2+iYYots8nrdfUmWDu67jN+Y+Z1saaxplfgT\noDnE\r\n=2fpq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuN1CnWRLRnVDc7yTukaCYedR6fbTbdLW7GCZJ1ftChgIgAaWEX7d9k0/uYejvUU/0BaU5Ye4vUSoyoSh5xe6f+58="}],"size":6028,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.1962.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.1962_1594685344468_0.6767683759390828"},"_hasShrinkwrap":false,"publish_time":1594685344611,"_cnpm_publish_time":1594685344611,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}