{"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.2","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":"9f1a9038d8530965c57ff686e6acf660b0f873d5","bugs":{"url":"https://github.com/fabiospampinato/stubborn-fs/issues"},"homepage":"https://github.com/fabiospampinato/stubborn-fs#readme","_id":"stubborn-fs@1.2.2","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-KjNUTgpygVmr96lyzJdAT7eiRl4/c5E8jnjfn7TTWKxN6oFqXC0o1zf0xTMbH/K8nNAUzhvL47mF+tFNLe8zBg==","shasum":"55d50d3afd0ee667dbbe3b4dd781989344b5a17a","tarball":"http://registry-npm.ywwl.com/stubborn-fs/download/stubborn-fs-1.2.2.tgz","fileCount":23,"unpackedSize":25726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJJcTpVVaMj4kb1eQJ3xihOsYHtnzWyAx7Yr7qW7tzgAiB7y0S5k6iCEdPq0sLMPlK6dUY4hFrcZ2U9/727Mcr1Dg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj57P3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIFxAAg0fr+ir0mBvJpRtXWFSuvHD0LnyX2RNIIZ3sx+Pz0nIzoD7c\r\nzXlpHgvktBuWcOyz6Yl2Kg5vAsI+NEDNIPNgfrt5X5Z3U581Fw3pa2TUWI7m\r\nCytP7RjqA7tYU91hNvgUwsLbwFa+EkgISBvOPyRXyAjujz6+8IiANTaff2uB\r\nSVUjw1sWdLQth3ENQs59/W94lKurEZmlrnG7qWmzuaxX3fEiGPO3DLfujE98\r\n1u/9yO5H7INVzumReHuWhAdjI8C4JjQ5F9npewI37abayQ5L4RBsQqgPxZ2U\r\nToloZV625+E1pGwEilChqQqTCe1r6iobByWMlDORaAVco67abe/M7diPJzgO\r\nBpKJgWboIcKdcYPrpNib9qM3DIlbu62IW6vPRp7Zu5z5lcMLw9SwhFE/Vky/\r\nLip1Bo82XYUSRsHh+FCYu7EgW70TX/QuZUHqEGKiFoFJkas12pP+NLPT5xCS\r\nHqiyC0ryKTrEa/0fGZvwHWXjhCk/kX7BaxPn3GvyNpwhz+3Mbw6ehm4aNuQ0\r\ntCbo3miB/r8baWYu5M005d3EbWJmtkjnonvhx3nJr74TMXM4yPB44EIZUmke\r\nZFoVlcjTWeTkOdDw1xXJEbsP7fhsMC5/dfsIYq8CEnO0SZqyyNhf9M/Bti0P\r\nWZSrMznLa1/OZzxlqan/9p6xwNZB2ZMcz/c=\r\n=MB/C\r\n-----END PGP SIGNATURE-----\r\n","size":6006,"noattachment":false,"key":"/stubborn-fs/-/stubborn-fs-1.2.2.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.2_1676129271421_0.705234085499951"},"_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":1676129271576,"_cnpm_publish_time":1676129271576,"dist-tags":{"latest":"2.0.0"}}