{"_id":"@cjser/stubborn-fs","name":"@cjser/stubborn-fs","dist-tags":{"latest":"2.0.0-cjser.2"},"versions":{"2.0.0-cjser.2":{"name":"@cjser/stubborn-fs","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"description":"Stubborn versions of Node's fs functions that try really hard to do their job.","license":"MIT","version":"2.0.0-cjser.2","type":"module","main":"./dist-cjser/index.cjs","exports":{"require":"./dist-cjser/index.cjs","default":"./dist/index.js"},"types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch"},"keywords":["fs","attempt","retry","stubborn","reliable"],"dependencies":{"@cjser/stubborn-utils":"1.0.2-cjser.2"},"devDependencies":{"@types/node":"^18.19.39","tsex":"^4.0.2","typescript":"^5.5.2"},"cjser":{"sourceVersion":"2.0.0","cjserVersion":2,"original":{"name":"stubborn-fs","version":"2.0.0","main":"dist/index.js","exports":"./dist/index.js","repository":"github:fabiospampinato/stubborn-fs","dependencies":{"stubborn-utils":"^1.0.1"},"scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare"}}},"_id":"@cjser/stubborn-fs@2.0.0-cjser.2","gitHead":"0168e4aac54a1a9ca6f921419fa5ed9edb53ef4a","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-/TLrJL5sm7LR6Y7mupuO1BhtvgB1aQ+bjLGOEquD7ARuGqGFZpsi/N126qOS1S6afdqbQCfzME2v9Cx9NajXJw==","shasum":"6b1e77bc1c632e8f90639d24b27457dc35c685b6","tarball":"https://registry.npmjs.org/@cjser/stubborn-fs/-/stubborn-fs-2.0.0-cjser.2.tgz","fileCount":10,"unpackedSize":32307,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDFq3v9tV3jUezF5s66LkKjNdh3+Hbd/nOEyfa6nmrESQIgezDHzCCxKYsetBlTDMYSfi7/ElRXJkQrCNBQ3aXpqO0="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stubborn-fs_2.0.0-cjser.2_1778131063726_0.8024200432264363"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T05:17:43.668Z","2.0.0-cjser.2":"2026-05-07T05:17:43.959Z","modified":"2026-05-07T05:17:44.148Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Stubborn versions of Node's fs functions that try really hard to do their job.","keywords":["fs","attempt","retry","stubborn","reliable"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/fabiospampinato/stubborn-fs\n","readmeFilename":"readme.md","_rev":"1-9892d9524e326c6ee3a842ec5271066a"}