{"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.0","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":"npm run clean && npm run compile"},"keywords":["fs","attempt","retry","stubborn","reliable"],"devDependencies":{"@types/node":"^17.0.35","tsex":"^1.1.2","typescript":"^4.6.4"},"gitHead":"0d7600eab34d11b7b972d52858716ca9ff8d6a12","bugs":{"url":"https://github.com/fabiospampinato/stubborn-fs/issues"},"homepage":"https://github.com/fabiospampinato/stubborn-fs#readme","_id":"stubborn-fs@1.2.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-RW33IwvkJRvq6qmWgetgzE9gbpsPlDoHR582ig6POjeGdmDrpHpCZJ7RuFuRK8G+AVKzRJgag/TzS2ewmosLDQ==","shasum":"5984b99b94fac61d47858ee203e8b38ff74a32af","tarball":"http://registry-npm.ywwl.com/stubborn-fs/download/stubborn-fs-1.2.0.tgz","fileCount":23,"unpackedSize":22180,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBzDt98XUdw57h0V8wxDNiopuQpMI0gtGDuD0Tr3vkQAiEAlDFmaDqDhp6LuTisz1XvT0EYU5E/gsUx4o9q814X2gA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih2/DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIJg/+LeG9djSeTt21ibW03UPXgoPzvvsre5emrE045vbYmHRzWv3A\r\nu39YYm7db0T3FYNZgR5dR7OC2St9cdScZrtXpHWICrmcwlG/Wb/yZOaSzDg+\r\nTNTRLEQGYRit4oBl6KlvfyOQQC+00fD0y0t/zpCyfBJXW03QI+j60FuSeVyE\r\ndszmWoQIieg+UdZgfgfyWTegtPsx2tr5fdPkUEqIlkpvNdv7DghuqGK/bgIx\r\nU2N+tLkHiNB/hOydaBzwOk7Ev7qSuLT1YO/WoxEBEs5pHu/Skqra67c2r5U3\r\nHeENIBsACZUglQK+yZDWbqMuZERoUNPy95+Hvc5xnoRvqUF5s3IaCPs5aAWn\r\nj2EC5Is8Q9K4UV+u/ph3OZpN7HLskPlouR+UHc6WQ/ATGJ5bEIob08qyCnCE\r\nURXOAIjOtqUR6xQS7y1oE5WhHgxiGnUJOiKbmhDBjHKUBoHvtmCKSDLg71Im\r\nwboj/fP2u9p3pOmB/wJ1we7fh25Kvc+XQg2GvuM2RxtNgbZlVzTHli9aclCz\r\n/nw+cG8czY0IQ/G/YekIbFMfHQ42R0gtjhdqx3SqqNnbfGQZlO/nEn3q9mtP\r\nwkkuUFJ++x57yfMb+oo/6JhS/Bv+YFaz0FSmLuQAoiwNNPoimzyAhkXetsR+\r\n7swVi8NyzBwZ0S/MXKHNsMsgJfqCqNnYc4I=\r\n=ZJGY\r\n-----END PGP SIGNATURE-----\r\n","size":5562,"noattachment":false,"key":"/stubborn-fs/-/stubborn-fs-1.2.0.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.0_1653043139661_0.5557931756953549"},"_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":1653043139824,"_cnpm_publish_time":1653043139824,"dist-tags":{"latest":"2.0.0"}}