{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.1943","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":"457a9c5f5f2fbd7b1a70388c19f545e011d27c7b","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.1943","_nodeVersion":"12.18.1","_npmVersion":"lerna/3.20.2/node@v12.18.1+x64 (linux)","dist":{"integrity":"sha512-cKBXhXHg/CS916uutQznErtruVpTNsvmMpB8BJLrQ1suV0pnO0KvhkT/9MPHzsyUTHRoag/smbQPUyaDV6cXeg==","shasum":"dab85717d24f8530fc6174ba3d712a359cb9a072","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.1943.tgz","fileCount":14,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8MFPtk0b9mryIfJ4hYgBghOY5j7bV5+y47RhjdQ3rYAIgGSW6M7qVoUqQWvfsGp758v1sKujzRWC/dN5WnumbdeQ="}],"size":6026,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.1943.tgz"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-write-stream-atomic_2.0.0-nightly.1943_1593648510174_0.3422126208806424"},"_hasShrinkwrap":false,"publish_time":1593648510270,"_cnpm_publish_time":1593648510270,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}