{"name":"@parcel/fs-write-stream-atomic","version":"2.0.0-nightly.1968","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":"9ad899000fdc044ae7b23e0bd2e1e7d28dae1805","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.1968","_nodeVersion":"12.18.2","_npmVersion":"lerna/3.20.2/node@v12.18.2+x64 (linux)","dist":{"integrity":"sha512-4cZPyKpXqRdQnnHOtjF4tMS2BTrSfCjVpVLCPCx3VFrphI2YHlb92VOgzFrARrNFodmrcEuZxWBNGOBs2mq3dA==","shasum":"77363f96fd2e981cf3ed2d64e19c23e1af47afaf","tarball":"http://registry-npm.ywwl.com/@parcel/fs-write-stream-atomic/download/@parcel/fs-write-stream-atomic-2.0.0-nightly.1968.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\nwsFcBAEBCAAQBQJfE48vCRA9TVsSAnZWagAA6gAP/jPw7Y4DMDIv9QS7vUnr\nIqoOoIvNO8p0aEA5vDuLC8YttbenJ/sPzLJyflGDaZZtwTxFvjWLm1P6BeG3\nxalIlv72Wa+in8J4ZA4NtDeqJDiVOQMyONROtyFIERaJREz3pMU3gekX9e67\nCUsLUGAk2PezmHVw+Rxn4Ud3TjWC4JXS0oniZAIcvoHnyavt+awMv4osJ7B/\nG5QuFPLTsKGCiNCOQqj9FLAjujrDUbr71pO0R6YWTsYMpvTde/Zl47+2H3xZ\nTTDRtpFXNCoz+8GCnFhQpMSOrnims6Oo5hAhSoLKOPagGURWVsLVb3hCbyKy\nu4yia5ThruInEKEq0W0FFk/e9MvcRw0+zgmeH6yiB3zWO2k6Mv381J0AN/Xn\n1yQXP5DcmqeYtAWFXCOALOVbakiQHdO3penGmb9nDex2G52GQ7BaXQnIOUHp\nHudcwY//vBRh0veOzDxj5zeFpLpzJxukPMQ7E/nxk6mQ6crwz3VPoGjmrRcl\nJS81zsxEIJF6oy7j1cxOYcuOJjLlb0NwJbA2VwYajdoZ4L5yaY+SoKqkl8VG\nlxAgBwky2YcsCHEVIHed0fDDj7MlTqY4+mjRTzPthu4dCqeMqtKTc5U0dOmd\nq3IOfGlNcD9CiKICW2a7GO969H/yqQ4HIl+C1HGGhOdZBTo7eHsYouKPFZ0k\nC7/0\r\n=2Kzo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAWn9OiS0OU2DGxX/Vq+b2p1mcDSvwaiIcYWHzOz/53AIhAKKuS3463GGLvE+/g3E0BtUjR4x+HNEWAEcwBJHqv5+P"}],"size":6026,"noattachment":false,"key":"/@parcel/fs-write-stream-atomic/-/@parcel/fs-write-stream-atomic-2.0.0-nightly.1968.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.1968_1595117358952_0.34458379880240786"},"_hasShrinkwrap":false,"publish_time":1595117359120,"_cnpm_publish_time":1595117359120,"dist-tags":{"latest":"2.6.0","next":"2.0.0-rc.0","nightly":"2.6.1-nightly.2740"}}