{"dist":{"shasum":"dab85717d24f8530fc6174ba3d712a359cb9a072","tarball":"https://registry.npmjs.org/@parcel/fs-write-stream-atomic/-/fs-write-stream-atomic-2.0.0-nightly.1943.tgz","fileCount":14,"integrity":"sha512-cKBXhXHg/CS916uutQznErtruVpTNsvmMpB8BJLrQ1suV0pnO0KvhkT/9MPHzsyUTHRoag/smbQPUyaDV6cXeg==","signatures":[{"sig":"MEUCIQC8MFPtk0b9mryIfJ4hYgBghOY5j7bV5+y47RhjdQ3rYAIgGSW6M7qVoUqQWvfsGp758v1sKujzRWC/dN5WnumbdeQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/SV+CRA9TVsSAnZWagAAcfIP/2GJAP55DCjwxKPdYykt\nWkLt7KK/LJsLg/StmV6MRFzkJ5vOY/N4fzn52TBFUiViu1rU149ve9TQdy3N\nxnRjNohAT2rCon68e9P1n/9Q+2ADJPBKje36vbvCC86+U4zH6pXwxynQC+1I\nEc6sVw+d8BTJ7KPcuEPScdeBDKRBbFYUmlsuF05JMOinFeLycqhoio3+2TyN\nupxtnpB417gUP4xsEd2NENC6h8mPEVTrF96afRXN6gOuyC3lsXs9AUdYXL23\nxIeM3vLQD9wf51UWFUYg9FvenhiOAB6a+Nb0mIDMgYk9//uvHG6PjcBQLPGG\noYQLTm8gddmNJc3wqagLxeqottI60ZCtBP4cqStyyUHi+tLOzwKEk/3skC3/\n2FQpQVlf3232GdJ6AUINeKw8sC5lSZ2n+7etgAEwVSFx69OTjLjEHP4AxnnH\np1qEOaw3SgwZj7/mTJWG7k/surwx0LpSD0fJBvJhpWtLbTuqd4h5TNJEnKtD\nnPI4UYGRDOb6OWcsfFzfWOaEdgeoZZlPTh1rsPR1AeMSNZyF8eGrfnubCZu4\niOn8poiziASlfCGHlUNWarDTTMBKUIteZccXsViiG/ZElLAyRc0o2nXN3Yj3\nMeex4DG6Q29kbB9/KnZYQVgERjiYQP7fSBEbYuN8N1PorJBCDTiPskDUdlZh\nUYZ1\r\n=hdcs\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":"457a9c5f5f2fbd7b1a70388c19f545e011d27c7b","license":"ISC","_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"_npmVersion":"lerna/3.20.2/node@v12.18.1+x64 (linux)","description":"Like `fs.createWriteStream(...)`, but atomic.","directories":{"test":"test"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_nodeVersion":"12.18.1","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.1943_1593648510174_0.3422126208806424","host":"s3://npm-registry-packages"},"_id":"@parcel/fs-write-stream-atomic@2.0.0-nightly.1943","version":"2.0.0-nightly.1943"}