{"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.0.0","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":"74e557be769a0f83b85e7150363d68c41406c5b7","bugs":{"url":"https://github.com/fabiospampinato/stubborn-fs/issues"},"homepage":"https://github.com/fabiospampinato/stubborn-fs#readme","_id":"stubborn-fs@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-7LzW5ecNDhpTlpWftu/CeTC8xnru/BDnVmacoex3lqmWgtLTUN7/bCOS0VRH8w6BX1NLpkr8+hHulMYVb2VTaQ==","shasum":"d03354a0137aeab22b0c85c1d7a37a44a9653291","tarball":"http://registry-npm.ywwl.com/stubborn-fs/download/stubborn-fs-1.0.0.tgz","fileCount":23,"unpackedSize":21477,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJLRC+9XlOxlhOP1vYbSXRGo+W8lcUYgF3IC56mYEaKAiBJzamTzQM6c+AaVN4r51ddgOzArVpGbVOd4IRuFLW8XQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihnp3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnkA/+Ipu/WkDkeb9FQB1ggyQ+Q2Obqgrwc4sRg/co7p1VjMnUBkd4\r\n5Q/gQT+m7VT3p9Of5U0O8ApxsfKsSM8/jzqPBdGWGTgjHVW/P2usrvkiYvIX\r\n7D6r2ciI4F2JSDe34tqyFBlRq22ESHoJl5v4nyITrjM/l7LVW5K9Wz1ahcvN\r\n1K6E0IaIrLZ1JP/3Vzeqfm0xpXc4KIUwjsP3hnyNIPf6K8CPacxwIYSLyzT5\r\nixgr9TIqFzwzR25CIgAStBsjxUpseBu/QyFIt/dTkPxnDMvBjrDheN/32C/4\r\n3DgcZMCRODz+w9Zx6o1VxvwTpJfPQFy3pSENw/1hab/L2YI4t2XCQoVZRe1w\r\n6JQIiLQpNFx+4aXxC2YjlOvPRdJYUkbjVUteHEAMv3H+QRaVh1t26F3ez41X\r\n3vcyFiVMP7YMXwwV6CullfvDq3wU5lqrFmMaBO+SUEZ2QltUyzmRitzjlaZA\r\nt5lsfv8jECOUXqDPyEuP9IoufM8zrxwp526xTEbrKWLS1Grm5aVh6ZNtz3qQ\r\nLdBz8PZ0G3GRepyRxt9VDu2HyYLQOh83ut+norR+uIEGhTYN7ct36KbkX1i9\r\nqnLPZ1iG17U2WkNdcby6roLuitozEydhodYtGeOvXB4fQIk+xaCswxsJnLNF\r\nZwAqNeP6lOHKJ2/OpyP0Xu0HjCbXipJn7kc=\r\n=+tGz\r\n-----END PGP SIGNATURE-----\r\n","size":5483,"noattachment":false,"key":"/stubborn-fs/-/stubborn-fs-1.0.0.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.0.0_1652980343339_0.597714844977018"},"_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":1652980343554,"_cnpm_publish_time":1652980343554,"dist-tags":{"latest":"2.0.0"}}