{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.1963","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":"1f5586657f1ea8660ca1f06abdd75687851ebbb2","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.1963","_nodeVersion":"12.18.2","_npmVersion":"lerna/3.20.2/node@v12.18.2+x64 (linux)","dist":{"integrity":"sha512-9EzTeYQBQ3vRCg+1F2lcK5UmF6fGyL01DqPNNSnlSnqV9yyIhDTvJXjgl3Um17DZIncJk4bvoLNf9EutBdXfFw==","shasum":"58efc06d77aeca6e985e9d6717388d04f2cc14b4","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.1963.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\nwsFcBAEBCAAQBQJfD5rWCRA9TVsSAnZWagAA5vQP/3a2elujfXh8RdmLuWX9\nru/qcnWaY75qIlCtNyWeEWeGOxxS3gyYchItZQY1bKytdw72vsFaLVDSSWpx\nk7IMXF4wMzPIAd253F8f+KY12Z1YDbCoCFWTpkD+SDVdagunMTIuc8LxGes4\nyctdTrfhMBsT3sqz4fuY4Fq9uWiH3wed1Zmi6L75Rp4uCcguCQmepBygCJg0\n6l/k6KQyYjHoRsSPWuTPMr6pnwbSajqJa/tD9fJ+V3uz6kzwveLcR6izez9V\nzJmlPsZeWITBav7yIUGOCIXrx4rTzExqOMJrsOkakBCHcdvvo4n/fOhxFAyv\nzn/j2OkhyyKtcpVdJ8uDhLbCXoShdudiOySpm7oAarBqtVFQJYYWNNfqipWY\nxVuvaQ1SlIVShImQL8PDsuKJvzH6in7aNWXYmRerHoV//yl8P/lClTLk3uwm\nqn9MlnhcV+QsFRfTz0wNDw0b1g3HjPZYyZHhxAwn9AsNEE/hIlX2LmEJnq0S\nj/qv960PjEZPNejxSEm3U/nHP36OB8BhM2hxiH/vybK4W9EEmdjCgVOrsZHP\naw4GQ84R54WeF8qCR6zz6sqkLJUfk62Lr+gqvH9oLb+hjauutaFH+M4Nh6oF\nXDLi3HdoMJB/oYLOo79XDzWLd0coUXQYea2kSIU9zipabxHqQ+VNQ4ShDpRa\noE0I\r\n=1n6y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGQ1bPiwl+35eTJ3RvPL3+Ci3FD4QIJhhn6lk4ySP+4QIgcgWhdNJ5tRpuEvsOtjNKcAIh+fbEC3ULgqV7uxHEmyA="}],"size":6025,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.1963.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.1963_1594858197965_0.3067288854435928"},"_hasShrinkwrap":false,"publish_time":1594858198114,"_cnpm_publish_time":1594858198114,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}