CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
readme.md70 linesDownload Raw Back to stubborn-fs
1# Stubborn FS2 3Stubborn versions of Node's `fs` functions that try really hard to do their job.4 5## Install6 7```sh8npm install --save stubborn-fs9```10 11## Usage12 13The following functions are currently provided, if you need others please open an issue.14 15- `attempt` functions swallow some errors that may occur.16- `retry` functions are executed in a loop until they succeed or the timeout is reached, in which case an error is thrown.17 18```ts19import fs from 'stubborn-fs';20 21// Attempt functions (async)22 23fs.attempt.chmod;24fs.attempt.chown;25fs.attempt.close;26fs.attempt.fsync;27fs.attempt.mkdir;28fs.attempt.realpath;29fs.attempt.stat;30fs.attempt.unlink;31 32// Attempt functions (sync)33 34fs.attempt.chmodSync;35fs.attempt.chownSync;36fs.attempt.closeSync;37fs.attempt.existsSync;38fs.attempt.fsyncSync;39fs.attempt.mkdirSync;40fs.attempt.realpathSync;41fs.attempt.statSync;42fs.attempt.unlinkSync;43 44// Retry functions (async)45 46fs.retry.close;47fs.retry.fsync;48fs.retry.open;49fs.retry.readFile;50fs.retry.rename;51fs.retry.stat;52fs.retry.write;53fs.retry.writeFile;54 55// Retry functions (sync)56 57fs.retry.closeSync;58fs.retry.fsyncSync;59fs.retry.openSync;60fs.retry.readFileSync;61fs.retry.renameSync;62fs.retry.statSync;63fs.retry.writeSync;64fs.retry.writeFileSync;65```66 67## License68 69MIT © Fabio Spampinato70 
basant307/AI_Governance_Project · CoolFace