Rocky_Mountain_Vending/.pnpm-store/v10/files/d3/ff17f88ef46a8f40247b8bf4d3b423d897a1132c5bf80c0d8dfd2472584908c16ca89f61b6f802279437dba2276b5adf4596fb853bd06c6d7d2abbcdd6d7bc
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

69 lines
1.2 KiB
Text

# Stubborn FS
Stubborn versions of Node's `fs` functions that try really hard to do their job.
## Install
```sh
npm install --save stubborn-fs
```
## Usage
The following functions are currently provided, if you need others please open an issue.
- `attempt` functions swallow some errors that may occur.
- `retry` functions are executed in a loop until they succeed or the timeout is reached, in which case an error is thrown.
```ts
import fs from 'stubborn-fs';
// Attempt functions (async)
fs.attempt.chmod;
fs.attempt.chown;
fs.attempt.close;
fs.attempt.fsync;
fs.attempt.mkdir;
fs.attempt.realpath;
fs.attempt.stat;
fs.attempt.unlink;
// Attempt functions (sync)
fs.attempt.chmodSync;
fs.attempt.chownSync;
fs.attempt.closeSync;
fs.attempt.existsSync;
fs.attempt.fsyncSync;
fs.attempt.mkdirSync;
fs.attempt.realpathSync;
fs.attempt.statSync;
fs.attempt.unlinkSync;
// Retry functions (async)
fs.retry.close;
fs.retry.fsync;
fs.retry.open;
fs.retry.readFile;
fs.retry.rename;
fs.retry.stat;
fs.retry.write;
fs.retry.writeFile;
// Retry functions (sync)
fs.retry.closeSync;
fs.retry.fsyncSync;
fs.retry.openSync;
fs.retry.readFileSync;
fs.retry.renameSync;
fs.retry.statSync;
fs.retry.writeSync;
fs.retry.writeFileSync;
```
## License
MIT © Fabio Spampinato