{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.2234","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":"8a4fa3ee3716087a38fc60d482da18a3a7bc3370","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.2234","_nodeVersion":"14.15.5","_npmVersion":"lerna/3.20.2/node@v14.15.5+x64 (linux)","dist":{"integrity":"sha512-7LBeE7Z8aU5W0sVsDCeFr6qdfMakx5BvCMx3FzUUGmeabDnIt06KJ20JTfe0DxDXrFKxS80Clto3QyN9Co+t1Q==","shasum":"9321238cfc3b6527c8f77269e23b45b11dbaaa17","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.2234.tgz","fileCount":14,"unpackedSize":20030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOZBBCRA9TVsSAnZWagAA+7oP/2Cn0QXHb/d/vQa69IGv\nh8NnIYJ96FyiZD60ZwVdBQEenYKsWxVsV95xd0qaCgp+7fYXCxMN9VuuHNOS\nQsOrLQmCtu/3pqaXl48JN5w+CPy2ZjL4b5iStNra6Q4IvygS7Y36T/c8mKJu\nvt72rOvP/FG6kxMW/BDIPgZkS6v9xKPFsAEMa04OuuPbbV6RDts2wK8iB1SV\nETfOTRlG7R/EVEyqunSRzBziHyKPlYPhhiATxIfdyRU+PyLeqjySplmruiuW\nEoSeiwCo10qND3oteuKTXKGGPxixwZY73yqfhRWDYd3TZPp1hZ0uAi+JTYX3\nr/ZAHFp41mR5HvUbvQrkSfFREpaPWbFXOx9bqTm6hLxqc10vJzv3eFpI1H/f\nHBJA6U/8MMKShGEm1hYtK34UenOE1350KLsG8vHErbUwSHgKEYriYP/UqCaH\n8UZgOaMW3XtdWVIY9bkmJ02dYxmZE2HMcBOzr2ug058WHQJjm1ktZRYWA9tl\nFAT/YrEHzgClE2+1XwrbACv8yJuKx0XX5K7SrK6aE0+vnZ8kF3zKJmzMQdip\nBit3ebgEdAYKWltGx3N6JOYg1ryil4So6PNzwDPdBh7M2Gw+6cOc+ggfHl1+\nHwWtRNmCbz8H2z2pL/lXUDdhCs+VhVIS0TqkmG69pmNIkJu0qHzGdiUmBzz2\ndLDC\r\n=OJAm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCi+tUFHCo063+8IrtAXg+o5SHQwdfpu4kyjxmJTVCoqgIhAPBAEgIW+bYt0QtFgxm5hcEu5eCL3JI8uVK8ip5+Kn/U"}],"size":6022,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.2234.tgz"},"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-write-stream-atomic_2.0.0-nightly.2234_1614385217344_0.33773104406441035"},"_hasShrinkwrap":false,"publish_time":1614385217489,"_cnpm_publish_time":1614385217489,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}