{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2443","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":"6c62ec421c4189793ae95f2e60f083d49ac79880","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.2443","_nodeVersion":"14.17.5","_npmVersion":"lerna/3.20.2/node@v14.17.5+x64 (linux)","dist":{"integrity":"sha512-rIoGH/WTxfsPJHqGZgoLWkwZWnpoF2Txf/lv1UK79HlEkZvPn5/zi0T88HNqr1Iao3W/zCD9/9+fGXLi6S1ULw==","shasum":"ffe06ef1f53819a5903ccee42bc91bbfc4c198f5","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2443.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\nwsFcBAEBCAAQBQJhLXm0CRA9TVsSAnZWagAALtcP/i8oVFadtOIhogGBLJmh\nAhH+mDytKp9auC9/S8Yw6nyS9hWroaxFKSWFc46A/hh4Rerc7Ixyr+r9x+1E\nJglKo/SztVnhd+Ghc3aXMAndtqlNysGrdCpaIOwfdKnvb5TtIzpKKvf22/3N\nIj1vc6u8W/tRbciCwXJFKkGumwBISDpeb+m120OGusGnBSZtYqzcwY7k8yEW\nBH3BA8XmhHjBT297qf8r2woRjrJTaldhR1jj4ueQ7tU9IXehqC+PXPta87fv\ngzs2UlX6PZoYd8RNfjZT9o6XoypFtDMcuGB/QWCVLBRoe/OBHXoAtvml5Tl0\njcpveLDw7xz6kJs9UbFoivr/Fyx2U4c3viaCTf9w9G1kNsBqahtN3t2hKXyK\nnD+yabqHaw6SPcvKgYLz2KQTiEo65Az39w1b3BtgN1Ps4ZEn86MoAmN+wXGL\n+rqembKroiLQGmkXbB+vK4pTcuvgeNxI5a4K0DTqluSpdSU41YBe7F9S64zz\ni2GAkUoWEyhEn0uQxwaoigrjBVbXqCXSrt1bq1OkNZah2PYxh6ySRmfJQBTE\ng+UiUltP2wik0lREPL5KrhG4sOU3Jz3PQfJQ6j6J17YuG79Wzdb2yu1GQHsJ\nupL7Aa+x2FoejpToLWIWk5O/kvJVoIhph7jN8azBCMDuEE73qBizzo8ywpkz\n59gs\r\n=IvX8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG5gVAIoEevCcwu9UAf1ncepiN3qNjliIKTkxg+6ruSXAiAKVwbv6os+bjC3LZ/haOJy8Qmnxx10dBrH2xMcWQpMvg=="}],"size":6024,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2443.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.2443_1630370228138_0.2758180556287666"},"_hasShrinkwrap":false,"publish_time":1630370228316,"_cnpm_publish_time":1630370228316,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}