{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2230","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":"46af2476ecb78921af21432f978d863fbffafd9d","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.2230","_nodeVersion":"14.15.5","_npmVersion":"lerna/3.20.2/node@v14.15.5+x64 (linux)","dist":{"integrity":"sha512-weRp8AMYMxU/sEx85KgO+e02baLSyHIf74XC86CIiDZLk/Qa1OGagrm8cgQIEOk4WBKaAsabjFv+33C5iqmYeQ==","shasum":"aa026331531ec6e946b8f8835323660383bf2977","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2230.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\nwsFcBAEBCAAQBQJgNEnpCRA9TVsSAnZWagAA9ZsQAJxlMGcMZjK9VZyWr4dl\n1OdvDESL/hjOhptw4gaX1mp4vDmc/X+KpcCtF4GUKbpLObQYMiKTy13r4gIm\nmaAaDITBh8dqhAzKzg8nxGjwSHBCe5YZzkhtp7xhm6kKhzVJp9K57AcgINeq\n1IXLUduJFcOEXxtyFGSNFSpbLcSS0kiqMwAPV7Fs6TwiwhRyCsVH4mOMo3qu\nhLLeWQJiqbk8+ilXTKLXlNGztQi4Fh5ym9C8M12aLQ1y2wgUvonqxDmPxab/\nauBn9RuiKXdlYayQSSoGc8ChHvExCI9N5sNqRe/Lmvps7MgYWzFi38fvJgQV\nFgnPwRUoeXmUA2CUpY3jHin7ghFHAvwJq+ZiP5XuOxhHD1IN8Yiyt7I0nMtG\n4gzIk8ffvgkH+LyukxlgkSDRy+3QbXUwZCD4VvJj92gBGvkN6q2tbPoohbOM\nQAEAWlMmY/6LipE4pefy4sEvp85vBCAJG4mYQXZm8T+YUPMgtbM7hz78g8BY\nNf6A6CrVQtOl3kTNBrr+azGr1eNiqfxt0v4lOzVtbeIT2DT6E3dBHnQ4EPjC\nCS4YN2hvj4SMfut/+h7/liRK1caXoR4x6ZOHjlwCGt7oeA8khLCYZYZRggMi\ntkIlkIfY6RwO1Ai/39l1WfooQgPXLq7JcKMqPQ1hkvT2EUYmScUbk4se+k6F\nEis4\r\n=+ioz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB5Tcphd8K0g7ArXUutjCfyLHDRn9z2dnewBOfG4s3cAIhAOTu+RMcMQOzJKjPJQTdoYT4PAa7zJqQcSqDXSXcYme6"}],"size":6023,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2230.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.2230_1614039529177_0.871355241309828"},"_hasShrinkwrap":false,"publish_time":1614039529305,"_cnpm_publish_time":1614039529305,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}