{"dist":{"shasum":"88b4b7240ba0532f2d17595f491d8af7c674f49b","tarball":"https://registry.npmjs.org/@parcel/fs-write-stream-atomic/-/fs-write-stream-atomic-2.0.0-nightly.2182.tgz","fileCount":14,"integrity":"sha512-a2eqokSeifMRbgFRGxUVYFS2sLnhuJahRjxNEk4dayFjfNxM5UXu+lFvzj/UGcmjBt1DDyYiPyp1zm9ZE6f1QA==","signatures":[{"sig":"MEUCIAcQeb7LeLoVqInTT8qi/Vx1TdFea4V5jhwLyuWT8lIVAiEA8fIBwS+KbDqxl/IpgCqxYMHw4M0Q8y8dJ9bdbQzKWuI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFKdLCRA9TVsSAnZWagAATMEP/3FinkBXxAghBZQFrenF\n7VNY28ezPRmmHxuM3hHoGBkJYVBWdkWjVvo5NXDj7L36Cgo5/P5E0ahIDoRm\n120gONanlYhMMfB8eDcFfrObK6JE6heFKB1stTxK0GgFSXxcx+aHQfs9X0xe\nCz//8buPUmYyHqxJDCrHnIHk9OEP1ntZwp+IeVfiYolomVP4/YQ/E4jqkqjt\nbQK1lCf95rXvIdlcaxVz4KGEnpVKhiBIrG1QpYhAdMne9R14d53QU/c9m/fW\naRiKGuMFsAJJJU4ONqKvRyaqOUNXWjh2nDWMgGqj/LD1xzKjKh9AorXMmjQ2\nL6Jyha3oRr1S8AlPir6BLGJiPvWchryNyNJZrflnoHd9RGfa1kLMrhlc2r5y\n7qvRRec0Ei+5Bsn73PuvizzxCa98/NiV1mSTwTUAqr9veirrqdUWx1XsOCYu\naPpT/ZRy5HLTGqKXIiVbVwRGk26jNwAWpsoZ6nxgx5EIA6YgK2BJ74lPwDf6\nH2kaVShxZnnOJLQrhpo97O5f119y+Jqnaqu+cwKuNmuGLzRwJzHUv67ebD0V\n54DBxbhwIR059MtM7s3xdWKtJlTf8IMotOCAIDNpWlQE6AZjMK9DttHK38R2\nvN6O/+GMw8fuFSZ8R/1mZNKrXMpSLL5wiLZBD31TZm75nGp9RL2mjWeRqLrW\n1bZ1\r\n=h/Eq\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":"40f24178138445abe8746c0dec996b0cda1bfe4b","license":"ISC","_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"_npmVersion":"lerna/3.20.2/node@v14.15.4+x64 (linux)","description":"Like `fs.createWriteStream(...)`, but atomic.","directories":{"test":"test"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_nodeVersion":"14.15.4","dependencies":{"iferr":"^1.0.2","graceful-fs":"^4.1.2","imurmurhash":"^0.1.4","readable-stream":"1 || 2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/fs-write-stream-atomic_2.0.0-nightly.2182_1611966282534_0.19384633963550657","host":"s3://npm-registry-packages"},"_id":"@parcel/fs-write-stream-atomic@2.0.0-nightly.2182","version":"2.0.0-nightly.2182"}