{"name":"stubborn-fs","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/stubborn-fs.git"},"description":"Stubborn versions of Node's fs functions that try really hard to do their job.","version":"1.2.3","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare"},"keywords":["fs","attempt","retry","stubborn","reliable"],"devDependencies":{"@types/node":"^18.13.0","tsex":"^2.1.0","typescript":"^4.9.5"},"gitHead":"f17f4afb986ef86445d6222c023b814aabdbf8d8","bugs":{"url":"https://github.com/fabiospampinato/stubborn-fs/issues"},"homepage":"https://github.com/fabiospampinato/stubborn-fs#readme","_id":"stubborn-fs@1.2.3","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-OZ1CjT+7H+L3sfwwlJEcRnGgc2ytzN4TBa5cm9nEbDaKUPQI2yWx7BM/n+4GV+4+GFh2lGe2OGDtu3dXEHYRIQ==","shasum":"49c8587beb547056bed6d5502bb3bf64905090ab","tarball":"http://registry-npm.ywwl.com/stubborn-fs/download/stubborn-fs-1.2.3.tgz","fileCount":23,"unpackedSize":25474,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRvdwRiOaqmP1K9bxM62Yfyd2Fzw6BFINGSCDzOwTC8QIgPmS/NLYaLwix3ohQHGg3x8abHgyk1za+ycE4Szgq5Pg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5/EIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmogug//Q/JBt1DKNoKnZyd2wllgDOca6ugRhvbC+M4TQRlI7+OUnQUH\r\n/aBnB/QNPPwy+ltk/9R+eDOKz4ygSF7aXi8Nz4+Z7l+XNv48wpSxoubRb939\r\npCwpnPEDh5FYobsQIltmk2g7bp+ry+4i4d1+RHCXZWZsW3NTMZGPdfNW/Atp\r\nGBzXNxz7yADXAQtS2EnQhfP1PdHvPe5RVxurQv+yBn8pOUuk0h6O0Ps6Oqzg\r\ntT/BvF01SGm2/ANG1Lwbcpp7xrCEPP8K5r/DNhtrU+cTBSkqEbYiRezNBH2r\r\no2RgH9tbFGfaCgRihQxDHFeuKQqdmWYKLJPG9kTsAj+Cl2YTlvTKAhSZtxVf\r\nLNg2yTwbh1JRJ/Sig4ImZ7FzmKiR0/rA7lKzZYteynLMSRnklQkNuSwBoJe8\r\nsb0bkUTxIiuR+QN3TdfEs0zZ/7OnEMFEExysxVg34n8tv+soOhkQn2QebOQs\r\nd+PiaBK6JdrljEeJX+K11H8P3eOoQIj1jAuRvf+YS+zrUtwy9gUvg7eqr7Ql\r\ncc/SEGaC4SA257OvrJD3GIl+XQe4Bycuy3OW3duNrolUtLI2/jgu2ConaB4v\r\nvLxGnmSVXaSXSGyonNdzzwBpipHCtdXRA1juSpj1hjgSOSGrRLXQigNrEc2d\r\naTpxa+k8wZYimHh3GqikRqGT0AED22eVW20=\r\n=Ao/c\r\n-----END PGP SIGNATURE-----\r\n","size":6019,"noattachment":false,"key":"/stubborn-fs/-/stubborn-fs-1.2.3.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stubborn-fs_1.2.3_1676144904670_0.7715863024021563"},"_hasShrinkwrap":false,"readme":"# Stubborn FS\n\nStubborn versions of Node's `fs` functions that try really hard to do their job.\n\n## Install\n\n```sh\nnpm install --save stubborn-fs\n```\n\n## Usage\n\nThe following functions are currently provided, if you need others please open an issue.\n\n- `attempt` functions swallow some errors that may occur.\n- `retry` functions are executed in a loop until they succeed or the timeout is reached, in which case an error is thrown.\n\n```ts\nimport fs from 'stubborn-fs';\n\n// Attempt functions (async)\n\nfs.attempt.chmod;\nfs.attempt.chown;\nfs.attempt.close;\nfs.attempt.fsync;\nfs.attempt.mkdir;\nfs.attempt.realpath;\nfs.attempt.stat;\nfs.attempt.unlink;\n\n// Attempt functions (sync)\n\nfs.attempt.chmodSync;\nfs.attempt.chownSync;\nfs.attempt.closeSync;\nfs.attempt.existsSync;\nfs.attempt.fsyncSync;\nfs.attempt.mkdirSync;\nfs.attempt.realpathSync;\nfs.attempt.statSync;\nfs.attempt.unlinkSync;\n\n// Retry functions (async)\n\nfs.retry.close;\nfs.retry.fsync;\nfs.retry.open;\nfs.retry.readFile;\nfs.retry.rename;\nfs.retry.stat;\nfs.retry.write;\nfs.retry.writeFile;\n\n// Retry functions (sync)\n\nfs.retry.closeSync;\nfs.retry.fsyncSync;\nfs.retry.openSync;\nfs.retry.readFileSync;\nfs.retry.renameSync;\nfs.retry.statSync;\nfs.retry.writeSync;\nfs.retry.writeFileSync;\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1676144904887,"_cnpm_publish_time":1676144904887,"dist-tags":{"latest":"2.0.0"}}