{"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.2.1","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":"73fd13193477a871bb0290f9da6770a1c0f35a1c","bugs":{"url":"https://github.com/fabiospampinato/stubborn-fs/issues"},"homepage":"https://github.com/fabiospampinato/stubborn-fs#readme","_id":"stubborn-fs@1.2.1","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-IgTveO0OGXMMi9iZtfPoYQY6IpeZR3ILtSsjMapFgLxofWaHG1sNlInV7yTRDV06YiNdwiKrK7505Fxq8ly+YA==","shasum":"3758a8b2b9be9212d1af1a286de2f04836e5b41c","tarball":"http://registry-npm.ywwl.com/stubborn-fs/download/stubborn-fs-1.2.1.tgz","fileCount":23,"unpackedSize":22162,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDAfe/uhaoBIeBqFredfkPy0bnTDFYTHT4o2ImLCJjXwAiEA+NH8aoEw6UEtC+BVrMjweeoC2m53dsflMoNDNJXmKr0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaAxXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6KA//S/cytOZYkc9VLOOzlkrEVZykvRvuWWNVzwkA4DtDMu/wQMZn\r\nBgsff6qVTWSQEb8Jj7PRo9nBEgrPBt6b1Cqg4862HlWmIni0SZF03I5nsyql\r\n0hIZFbmhoJLTuntvm5MwWelnIHXr3DfxYXu7nae9UF6qjsv2k2OxpzzM0esN\r\nB0dRsXzrkQbrxR2sjQePHe6Up0HX7X0nO+pMSacG6CytswKJVknISIRLNbAW\r\nqTJydhE3AAgfKkZSbm2kD1CaJ6NKmAfH/cuKojryY6Q5Sq8pUTa4Mr66KQms\r\npMRi4YmE7I9MS9daRwBEoclfOfdPnEFzu1yIV+eOlcCt62PK9b7JVqJ7qPYl\r\nC9lR9HyJxXxbiNEYXrPh1tIic/56te5S6JM6f8yUBZwEPCKYZBp2uCbfzktu\r\np8+pLWPe8OEoJMY1kU4K1xiyRGYiHL9j+d8ZwlwWvRqnT/xSN3eWVkq8HwG4\r\nQaymzgXaat7YBr9xBBaucJC6BaV0OZPOcq9NI0oYU5hatq/r2dtEKYMc6dvt\r\nfdmOPrQLlfYhF5cYroCpGSV7E/jJ4/BUASfAdmTNaDKQD4dRWUkqxct0jb5N\r\no+cNmPDxGqzPED6n8iaBfC3a5PH7fIMZAF+daY64T6rz4ZSc9jOpaqg7NnSf\r\nxIgmhTDVbShe8Ociauvkbz7i2BfiqrVcz5A=\r\n=md2V\r\n-----END PGP SIGNATURE-----\r\n","size":5550,"noattachment":false,"key":"/stubborn-fs/-/stubborn-fs-1.2.1.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.2.1_1667763287014_0.6167103825194962"},"_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":1667763287182,"_cnpm_publish_time":1667763287182,"dist-tags":{"latest":"2.0.0"}}