{"id":22222105,"url":"https://github.com/fabiospampinato/stubborn-fs","last_synced_at":"2025-07-27T16:32:45.215Z","repository":{"id":57689453,"uuid":"494162750","full_name":"fabiospampinato/stubborn-fs","owner":"fabiospampinato","description":"Stubborn versions of Node's fs functions that try really hard to do their job.","archived":false,"fork":false,"pushed_at":"2023-09-24T16:28:51.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T12:39:21.027Z","etag":null,"topics":["attempt","fs","reliable","retry","stubborn"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabiospampinato.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2022-05-19T17:12:29.000Z","updated_at":"2024-06-19T00:21:55.211Z","dependencies_parsed_at":"2024-06-19T00:31:53.678Z","dependency_job_id":null,"html_url":"https://github.com/fabiospampinato/stubborn-fs","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"1580452ea7ed12cf6df3032535ae0a33cfea824c"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fstubborn-fs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fstubborn-fs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fstubborn-fs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fstubborn-fs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/stubborn-fs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227817017,"owners_count":17824200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attempt","fs","reliable","retry","stubborn"],"created_at":"2024-12-02T23:16:57.701Z","updated_at":"2024-12-02T23:16:58.388Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fstubborn-fs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fstubborn-fs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fstubborn-fs/lists"}