{"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.1.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":"68cb3823b8330f776a5fec5f11bc10373c4428ac","bugs":{"url":"https://github.com/fabiospampinato/stubborn-fs/issues"},"homepage":"https://github.com/fabiospampinato/stubborn-fs#readme","_id":"stubborn-fs@1.1.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-WjW+WD2IWRpFO110wdiXBlh5S9kDvvsfI7H/TUUNwMcghN4fxPiW4wzPNCSwSBTryhPl3nzZoQ/Q0DPerZnsEw==","shasum":"840275fda99af72126126ae6fafd1077ce4aae5b","tarball":"http://registry-npm.ywwl.com/stubborn-fs/download/stubborn-fs-1.1.0.tgz","fileCount":23,"unpackedSize":22002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJMjel875qdb6kkeC+ucNRwMhgYqVhkDI7dUaohUjRZwIhAMU8/fPmD64wJGmrTntbYbBu1tEWW3tY3OJeBr2DUFba"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih28jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmobgw//aQ4+sk7r3pNw8CU6Ns2wWnHdUhIt4NHy+JBewrCNUNiAYoOw\r\nyblDFQYtzXMy0/nIMy/Ci5PkpDnWwNN+aZ1lEDyTe+2TbdiT92zjKErPBpVG\r\nZ2+fA0yq9Qo6e/qyXz3zFjc4lD7STLXxyHzHYKkR+ZPwznyZE0lbxvBkCygs\r\nk45/iQtAIOCJ1vomTGgIQs5fGD4NFwQ351tSozNLExq3FXrhP3iJe6e1yBJt\r\nQKpckaRtJb7++KPJEpghnlT8Byf2jRj+44dVaDtwyE5G1NW3Vk3ESM2seo2J\r\n1pSPIgnnOvdmf8WaTdGKL10/v5SYy5UIucXgKPeMbREUyJ8J4PLmXtfcx349\r\nmqPsyIg1Ag4RJd51akmQIZi4TPegxjds/+8ioppEpnSOLX9br88vCc5jaZHx\r\nHL5jOom8ZjW6bmt+1pZnIF5S/Cr7M3ku/ITrB8fktFwn2aSOivgz4/5YaBdj\r\nBvciXxDg8XoGB2yuPzVr8zVYUNWC19tvT/d5CoW+SfrVorhPdZASCf0xc6gR\r\nOWz2nHALmH3WMNDEl0/NteWLVsGPM65GS/rEcGlyMvgtA9xgC/JKivItV9OS\r\nqcooQku3utBvKUrEYH0EzC72aXYpq57HcrmvjUn/I8eJJK/E+AzLtKp0Xkjt\r\n3b7hjCbFWBzmFuKtB7p5rG9knABnoMvnPJ8=\r\n=CnLc\r\n-----END PGP SIGNATURE-----\r\n","size":5533,"noattachment":false,"key":"/stubborn-fs/-/stubborn-fs-1.1.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.1.0_1653042979215_0.9772309913416284"},"_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":1653042979401,"_cnpm_publish_time":1653042979401,"dist-tags":{"latest":"2.0.0"}}