{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2428","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":"c5337a8b4af6114a2d3634c2d314a5f0ed1795a2","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.2428","_nodeVersion":"14.17.5","_npmVersion":"lerna/3.20.2/node@v14.17.5+x64 (linux)","dist":{"integrity":"sha512-7uuITOC0GD41Ex8Annl3xAPQxQD5tXCqgzRbjv8bZiu63JVQ7kjcdOQr+J75CKLyL6KLGiN9yiaa/ayfew24Dw==","shasum":"2412a4d14c34bc970afe4145070d254c3a1e9448","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2428.tgz","fileCount":14,"unpackedSize":20030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIZu7CRA9TVsSAnZWagAAqAMP/jc3Xcjm9hcIGstO5Ngh\ndGpOtwEQud2+/nu4SHk2mY/gxIrduLIOOmFLv/+5l7kL2m7cpjtLeHFcfZ1k\nkIMVv8Y95O8pLaKXu4SFheGFL5mAA13ROPuVmBfvl6j3/q3bJGqaCDsals4p\nRUtpBoTj35uRjxNo3gzQt5GRe9mqJTh7fA/jCFVURuZwyZbIpJdK0tVyjHfn\n+FsQCpLPfKUvHXX1ziadRgbM+gKpUrEcAahl0yXjNpdefiVHu/g0ti86IDVv\nE45kY+2VPEGsYXFCHIQF6Dr3Iuay43V0lGTD8qoPICuXL/y7nn1tItWs01T1\nPuegkl25TfFZZGh60Gd4S7Y+GqNddo36x8ZbaTAzbD2Jt5c9E+GmSIcS+O0p\nb46/1F8t4Zbz6IXKVeBoqzy/7ul6QZjJEWIAjCMO+0/kWFJ/bVUlOrz6X6kz\n8OHCsuNJ1z1aPLVytHUtFkvD6ot2bJPBOONpJAgYtenh7pAGnRqzOzS+6B4p\n5+DS/BnMpjiTwLYao9eyj78rIBxa2fbIv5CmLe6T97JxjwgQ8V8WBLRntqfT\nGXZxOOtnWgF3MZ4BOs5HfCxQA9k61+lgMYPsfxn8gEU0z/+YIe+KSXjWEsXu\niFo/VlQ3rL25hbEKAeV5Sv3lcVnlQ5FV46VbBWWAU72yBsxuSgmZOUGfFTL0\nEClh\r\n=ONEP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDQUZmRYKsQUJWlcjLxpjG0j98Qf5nFWKQPgKZ0q0ucWAiEAmbD6ILWS0hhjgxhPTpX+PwTKyPW5gYENz4MZcK2/O2E="}],"size":6020,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2428.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.2428_1629592507033_0.3590419981205031"},"_hasShrinkwrap":false,"publish_time":1629592507173,"_cnpm_publish_time":1629592507173,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}