{"bugs":{"url":"https://github.com/parcel-bundler/parcel/issues"},"dist":{"shasum":"ea9423703b7a6e71646423895db31bd4f87edc93","tarball":"https://registry.npmjs.org/@parcel/fs-write-stream-atomic/-/fs-write-stream-atomic-2.5.1-nightly.2692.tgz","fileCount":14,"integrity":"sha512-OmhzIzwFuL8imwT4M+vnda87CY/XcX1FWdcQRBD/Ccs1sUie1t3vIZSjOcsq71pPth/cTSFDB+m+potPIq08QQ==","signatures":[{"sig":"MEYCIQCjrjVyls/V7zeAeuKJDbCNQe+nKruC4k6Dt7/lKo/sJQIhAMHhonsS8XkV1B3tGxYNwAg5Y8OH3xWQYgsjHeyC5R2/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYfnvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVAxAAg9QmHOu9zP65atIw6sTfB0LF6tE+VcSdb2+flGjyLLjhWizG\r\nQFXRVZ0vv12cJr4OLJNXdJhMIxKf0o7aA/SAHBDZ8qzk51dk9rZRueJxibto\r\nfV8hFtRUoZGnoZbhgRTlznhQGrShGtO39ebefAabGYxWjHqflf8uQWh6O4SM\r\npdCJTPGYJhW0DlRPyPJL+2FtHMYnWXZlwFE7SJDq4FOYLCwTE3mbdI1pAkNd\r\nf6qBMklA2TRnOF1JWyBInHT08b2M13Ux/IHrIveG6NinPpaaEPhPER5Un78N\r\n/wfXo8/YfxcfXqE9pVRBcWcaZyMnyr7ZK2q+GJPwSGYkNQgG7zVLpHV/GikG\r\nUO7o/Jz8UVRv6oxrqkopPvVOrK6BVSP9hAGwpxuu2bChV96hBt/kqDSmEeo6\r\nmmalmzEJZcEgiXB7irOi5BoF2hu+8wGpDOx/cWyA1Kecu94VyElvrBXXJ95O\r\nrgFQrs/nMUfu+6NEK+Ksbjx8RXka0viBsdeH6vnRjJRpvQSK5JFvFfm7H2J7\r\nHYzt9l58gDpx4UoqYH5RmJEE7iTzb1MLpiBq9sUDoMOzc2ReMBlESWzdMQaw\r\nyuzXQksKJg9fHxwu24eub4EzQwj0MSYjxgAXNt/nQsNrRDGfCbHpUGCKukrc\r\nb3eh6wO5ziFH0NeoT9ywm6NjYuTYFlCjTlU=\r\n=Xn3N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"@parcel/fs-write-stream-atomic","author":{"url":"http://blog.izs.me/","name":"Isaac Z. Schlueter","email":"i@izs.me"},"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","funding":{"url":"https://opencollective.com/parcel","type":"opencollective"},"gitHead":"5cfb846d742eb86b1232e531be6e0e513551d838","license":"ISC","_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"homepage":"https://github.com/parcel-bundler/parcel#readme","repository":{"url":"git+https://github.com/parcel-bundler/parcel.git","type":"git","directory":"packages/utils/fs-write-stream-atomic"},"_npmVersion":"lerna/3.22.1/node@v16.14.2+x64 (linux)","description":"Like `fs.createWriteStream(...)`, but atomic.","directories":{"test":"test"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_nodeVersion":"16.14.2","dependencies":{"iferr":"^1.0.2","graceful-fs":"^4.1.2","imurmurhash":"^0.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/fs-write-stream-atomic_2.5.1-nightly.2692_1650588143545_0.6153324704516396","host":"s3://npm-registry-packages"},"_id":"@parcel/fs-write-stream-atomic@2.5.1-nightly.2692","version":"2.5.1-nightly.2692"}