{"_id":"remove-file-safe","_rev":"4-eaf700329fa8c530d740a60155796912","name":"remove-file-safe","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"remove-file-safe","version":"1.0.0","description":"Remove files without try catch","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/remove-file-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/remove-file-safe.git"},"keywords":["remove","file","files","safe","without","try","catch","fs-safe","rm","delete","trash"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2","@types/mock-fs":"^4.10.0","@types/node":"^14.11.2","mock-fs":"^4.13.0"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"remove-file-safe@1.0.0","dist":{"shasum":"a7d292f266675de9f81aef8d0e7c3eb4dbe85ff1","integrity":"sha512-ERgVvCkWPscmKLZXSJGSEdflHx3Aot6iukWZjmvbh+pmp0mbJ0wxuYd9WHUuhpnDSYysNH7gquGm670cGWMzEA==","tarball":"https://registry.npmjs.org/remove-file-safe/-/remove-file-safe-1.0.0.tgz","fileCount":7,"unpackedSize":5556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeSV0CRA9TVsSAnZWagAA8jQP/26pAqaV/NF76QB6twDg\nkjQZijbQE4c6dFwqPQVW0tYsbS0feH5nD2SMIclZKxg58X81mhxvko4CYShi\nJ6iPGMO77hyCuEXA3EL3IOv+QtPuaZZ2yIfXiCkqBNvH3DMi24KLeKuJwNzZ\n/WosNWCEp62FPnzTIlbFlYBYdt8GEps00FzSToiqDx6ncF2IWq1Hc511yOG+\n5BKFtCGnIM8hjSc7Mw7MHXMccWWs+gMi3l5U843XkEQ14rGNwnfnrZ2a5Dfh\nAbukBsgHRu3gx5P+trrUX7o4xDst/ALgXqUh/XHu7jfWo6DTFwkbP8dGc9PO\njQDEvgq1F11jWTay5JK5TwF2HcYRAis4YAEIeqTfLyWcYGuZMEMknqLGI7mA\nRurfcaFwYQGMaP7K4CEKMlRPzTt4WjNAfiqcCbx10A9MO/rafejmxhJKkNxW\n5rqJ/uqIfWoIfm9gzgsRDQjxfsKHc+AHR+6nQ+nWSMRSDpIhmx0YFeb4mSDO\nbXjbVHwwbFffoIBrvE7cPLaO91CJA+Ww64o5gd/AL2NQXl048/Z6ORU/iqrs\nJSi3ko12JczyA4DDP16yeFKlNLS9cw8vwmBxC6OogDOgMCvdgzoG+brb96d7\nUlrybElXRAESQN3Kwhxxa3WMJxQ2Phh1fjTyUByFsD7Ng7d4mVbuESnlaMDD\n+A1O\r\n=bqJu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF+1msf87O0zUumv+bc4hGBqQ01kP2q/yuwFLi3Yj/9XAiEA8Ah3oCAmgCcvOMDgQZyxjuqWQSfbPwyQIATj5q7mJdg="}]},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-file-safe_1.0.0_1601774964078_0.8562566637375109"},"_hasShrinkwrap":false},"1.0.1":{"name":"remove-file-safe","version":"1.0.1","description":"Remove files without try catch","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/remove-file-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/remove-file-safe.git"},"keywords":["remove","file","files","safe","without","try","catch","fs-safe","rm","delete","trash"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2","@types/mock-fs":"^4.10.0","@types/node":"^14.11.2","mock-fs":"^4.13.0"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"remove-file-safe@1.0.1","dist":{"shasum":"550c1ec9c59fc115eb51de097a0052ef14b07061","integrity":"sha512-YzBF0IfrPG9PMGCZsQjMNeIyi9+PPYLDHTcU+bDhgZhfaO6WFpA75+kB5eEkg9C3Puomo6Y50Ll8sCem2TiBdA==","tarball":"https://registry.npmjs.org/remove-file-safe/-/remove-file-safe-1.0.1.tgz","fileCount":7,"unpackedSize":5857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfegh8CRA9TVsSAnZWagAAwOAP/2d1KH2UKY38mnGiBmuw\n3pfctw4BmLVF63zW5T2x5Ff71/p6BZLphRBE7yHATWnxIbrVbZGIVCtPuvh8\nyMtpNtBaV1IZVzelE3XoWoqA8uXlb7xmUxX5wMlI4CKP/l8cOxR3Tr48odx6\nWij72uWbWuvqrKoJdRHPMQ8Di35aWrCP4KomhCN19uWdVvym97YV8SpC8+r/\ngd55xVUsiRDvBkIdCWC4giuVLrrWK35sXkQJqKCz2UkyCGQKB3J/+SgHfhPG\nb2WQFKu2I0YA+cPiA+5YX3xbOgWo5lQ8A9dFh/W0u4JL4qHtsUSyuAOcOkYb\nTvFhkCe/m2jiLvXFUmwIYzOKJ+gzEcWI3FLR9cwdOFWMa6XpRvSgeApv93cY\nXVxeOJwQuyDucAXRHtykhln8Q7S3JCbnXcC6/z+gF0Uz39QCX4DMNF5lk7za\nG3fxK88nkutxYer6kX15W8ZKsABfJeL3LH5EWsN/VenFg2M3ncGQuqbIj1QR\nOtJpZv4mhr4nhf/LrDCouZs1eg9StNSIGFDHZZF1zf1Muxo3qVcCOhdxKKCM\nyNXyZc9ULjgy6b2/a7RAjUfBUyXpwPWmJINPIYCX9F6XHPmlcU1PXg3V6unq\nDMhn3sVwwraOV4SF9jGfUuHBpylPvb+LxgQPFFB77haO5M/V8U3cYZm/se0h\nD++m\r\n=bsB/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFZ5u6X65IAjnt702JyloUn1sG2/4Pn379dAzcGtONnLAiATW4cEedjORwbz7DMOWAss6vLL6XZiCOgisT8ednGbmg=="}]},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-file-safe_1.0.1_1601833084150_0.33097136104852876"},"_hasShrinkwrap":false},"2.0.0":{"name":"remove-file-safe","version":"2.0.0","description":"Remove files without try catch","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/remove-file-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/remove-file-safe.git"},"keywords":["remove","file","files","safe","without","try","catch","fs-safe","rm","del","delete","trash"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"dependencies":{"is-path-inside":"3.0.3"},"devDependencies":{"@bconnorwhite/bob":"^2.9.4","@types/mock-fs":"^4.13.0","@types/node":"^15.12.2","mock-fs":"^5.0.0"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"remove-file-safe@2.0.0","dist":{"shasum":"81cf84fc1442d81d564e70031494b28f6dae3100","integrity":"sha512-2pCJPyhDIk99W4zUQ1rgq5k+OEO26ud7ED+ZMpB/Np8BbLIchKoT3fVoTl+MEe1QSH8ZwkSZTyVKIRfyhJ/x+g==","tarball":"https://registry.npmjs.org/remove-file-safe/-/remove-file-safe-2.0.0.tgz","fileCount":7,"unpackedSize":7657,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv/cUCRA9TVsSAnZWagAAQHMP/2botg3HvAGLzUy62O8N\nyiEU/xHmTgSQy0iZoknWw0lT6PqPI0UPJJep7li01WRX0HN050boY8eesGJV\n7WQEbrVP2OyloxMQrqmZPPHmwVeD4wvdO+5/j02uEyYEuctNvss+i81tEeeC\nUELvyAQRbTrC532n3EUnBiIAT14T/5RQJatGIjm+QATP/iWo+cx0hTcv1sDi\n09s3laz1AhUppTkmJEw3mfoCOpy5sb31efJiI2IE8j4nPArdiJGXrvCLwFLg\n/TmxUJsuyhWdZqlP/WFQlGbemBX2WxVotS9iEesPfg9SUym4z++DMI22rpmR\n6rFJNOEEF25P5T6ZqTiC0J8KCEn434VcoutbfUKySgRq7WTyIZ6D/HByHlbq\nVDkM8uSJttXJNPhbSVwNPuz6VDmA+AKTqH+vwZqnlMTNGYJi30F8Zqh6FYeV\nMu9tostrR7exdj+UnrePDvLs2wFyM7KHS7+CgrNoAQMO4kKt17C84b2k3P5l\njgjmkJZ6ZpH6EvX19yWTj2FQeMQIzpfC+7qz/lJ8IbUR0B8Oos/b1ftjmcf0\ngsr+5jFE1kgj1ZuJiXJIuVND26qooy/3QGkG/l9ssVAWNBAQRKQh0NMORmH2\nlBnJGHXDjjaI9e+alDMKfNNb2tD+35XnC0AFqUBWz+xtRoIyuu4CmY79qCQS\nRlpo\r\n=plgJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3qKJB6/jjSvEK2QvV4nDWaimHJIM+zmy5SvQGCyE/wAiB8FKNqatiAdmf9fQpEQnWGgrutCo1JENcbitapN7ITUQ=="}]},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-file-safe_2.0.0_1623193363945_0.5539311740955917"},"_hasShrinkwrap":false},"3.0.0":{"name":"remove-file-safe","version":"3.0.0","description":"Remove files without try catch","license":"MIT","private":false,"author":{"name":"Connor White"},"contributors":[{"name":"Connor White"}],"homepage":"https://connorwhite.org/github/remove-file-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/remove-file-safe.git"},"bugs":{"url":"https://github.com/bconnorwhite/remove-file-safe/issues"},"keywords":["remove","file","files","safe","without","try","catch","fs-safe","rm","del","delete","trash"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"build":"auto build","dev":"auto dev","lint":"auto lint","prepack":"yarn build","release":"auto release","test":"auto test","typecheck":"auto typecheck"},"dependencies":{"is-path-inside":"^4.0.0"},"devDependencies":{"@types/mock-fs":"^4.13.0","@types/node":"^18.11.18","autorepo":"^0.1.9","mock-fs":"^5.0.0"},"eslintConfig":{"extends":"@autosoft/eslint-config"},"jest":{"preset":"@autosoft/jest-preset"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-auto"},"_id":"remove-file-safe@3.0.0","dist":{"shasum":"3d33e153ec9792be769f1b1d69f52c374b6407c5","integrity":"sha512-JkgTbVCca0UQjWSAhpSPFR+ZT4Fr+2qkvQ5hMa8WMZGDLI56jztX+ZQpdCvzc+MBxyj4vlZs/dCln2DIvHS43w==","tarball":"https://registry.npmjs.org/remove-file-safe/-/remove-file-safe-3.0.0.tgz","fileCount":8,"unpackedSize":7442,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdSQoZinnhP9IUFdtjBz5Y5U9Uz0yvHeVtK5/24xpl6QIgVrOoKKh37g+t+HbwkPdMbn90WkMF0vK2VHOOGHsB9jI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv1fGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSUg/+MGAXh7zGtPBnlA7QBANc5ZeruJjjeS0vfCsVN1WyUSFyYBs2\r\nFNtCsGPJnFr1bQ/cflxGKWTTRa2b00FB/VYA+K/rjGuXQ8s6QJfVW6C7Vl5E\r\nkVD/QH8Qi2p/p1If+jR6ttNkG1aM+ynalUuz4fQgY/KUzgz5rs6Ymjfrxsw1\r\ndfCDgu8fQevgK+2jjNrdxQUAyNDkcbXq7V+T0hrCNiClQeSDf5MkEUejDVrl\r\nxZNkZ5zgZSSb3VdhLybm1DgeJgfkxdeHWaGEKlqhIIW1eRkqg5yAf4DQRZk6\r\nopBuF5dQYawv2QwwdmcF+15pbJd6vZroejMWJyEiKp/HmBLow5421o9wT+i9\r\nF+Re0ojxVstrDZWwVy6BaueQk174qda740wwM5i9f1Jjka2p/Cn29J2kmcDv\r\nygfYstPyzk0w2rGB3DvGZGz+j+6qlL/Jhrbd2y2bheFW4zLv/Bg/l5d4yaxW\r\nZB7O4i8IgIbkQIBhaFqXXygpXHKgMEylh/rgeTTdrfeTfifSjvj87VCFySpz\r\nX4S4tLDerKkEr+Jweo3Ibj6w89y4wwFjqWMg6r1S1XJZLCN/qaG8Y+EDKmw5\r\nOvvaixLZn5ORGCRnRcgfIONc4yUaCO9s0g6tzzfziT2O03AyxABYCF8nuaed\r\nNoQoiHFv1esG5KIsepCqB75TxInyXj0uid4=\r\n=W7Zr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-file-safe_3.0.0_1673484229880_0.6672793880014869"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-04T01:29:24.077Z","1.0.0":"2020-10-04T01:29:24.210Z","modified":"2023-01-12T00:43:50.133Z","1.0.1":"2020-10-04T17:38:04.274Z","2.0.0":"2021-06-08T23:02:44.100Z","3.0.0":"2023-01-12T00:43:50.040Z"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"description":"Remove files without try catch","homepage":"https://connorwhite.org/github/remove-file-safe","keywords":["remove","file","files","safe","without","try","catch","fs-safe","rm","del","delete","trash"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/remove-file-safe.git"},"author":{"name":"Connor White"},"license":"MIT","readme":"<!--BEGIN HEADER-->\n<div id=\"top\" align=\"center\">\n  <h1>remove-file-safe</h1>\n  <a href=\"https://npmjs.com/package/remove-file-safe\">\n    <img alt=\"NPM\" src=\"https://img.shields.io/npm/v/remove-file-safe.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/remove-file-safe\">\n    <img alt=\"TypeScript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/remove-file-safe.svg\">\n  </a>\n  <a href=\"https://coveralls.io/github/bconnorwhite/remove-file-safe?branch=master\">\n    <img alt=\"Coverage Status\" src=\"https://img.shields.io/coveralls/github/bconnorwhite/remove-file-safe.svg?branch=master\">\n  </a>\n</div>\n\n<br />\n\n<blockquote align=\"center\">Remove files without try catch.</blockquote>\n\n<br />\n\n_If I should maintain this repo, please ⭐️_\n<a href=\"https://github.com/bconnorwhite/remove-file-safe\">\n  <img align=\"right\" alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/bconnorwhite/remove-file-safe?label=%E2%AD%90%EF%B8%8F&style=social\">\n</a>\n\n_DM me on [Twitter](https://twitter.com/bconnorwhite) if you have questions or suggestions._\n<a href=\"https://twitter.com/bconnorwhite\">\n  <img align=\"right\" alt=\"Twitter\" src=\"https://img.shields.io/twitter/url?label=%40bconnorwhite&style=social&url=https%3A%2F%2Ftwitter.com%2Fbconnorwhite\">\n</a>\n\n---\n<!--END HEADER-->\n\n> Remove files without try catch.\n- Returns `true` if file no longer exists.\n- Returns `false` if unable to remove file.\n- Returns `undefined` on other errors (ex: permission denied) rather than throwing.\n\nUnless the `unsafe` flag is set, only files inside the current working directory or OS temp directory will be removed.\n\n## Installation\n\n```sh\nyarn add remove-file-safe\n```\n\n```sh\nnpm install remove-file-safe\n```\n\n```sh\npnpm add remove-file-safe\n```\n\n## Usage\n\n```ts\nimport { removeFile, removeFileSync, Options } from \"remove-file-safe\";\n\nfunction removeFile(path: string, options?: Options): Promise<boolean | undefined>;\n\nfunction removeFileSync(path: string, options?: Options): boolean | undefined;\n\ntype Options = {\n  /**\n   * Allow removals outside of current working directory, or OS temp directory. Default: `false`\n   */\n  unsafe?: boolean;\n};\n```\n<!--BEGIN FOOTER-->\n\n<br />\n\n<h2 id=\"dependencies\">Dependencies<a href=\"https://www.npmjs.com/package/remove-file-safe?activeTab=dependencies\"><img align=\"right\" alt=\"dependencies\" src=\"https://img.shields.io/librariesio/release/npm/remove-file-safe.svg\"></a></h2>\n\n- [is-path-inside](https://www.npmjs.com/package/is-path-inside): Check if a path is inside another path\n\n<br />\n\n<h3>Dev Dependencies</h3>\n\n- [@types/mock-fs](https://www.npmjs.com/package/@types/mock-fs): TypeScript definitions for mock-fs\n- [@types/node](https://www.npmjs.com/package/@types/node): TypeScript definitions for Node.js\n- [autorepo](https://www.npmjs.com/package/autorepo): Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.\n- [mock-fs](https://www.npmjs.com/package/mock-fs): A configurable mock file system.  You know, for testing.\n\n<br />\n\n<h2 id=\"license\">License <a href=\"https://opensource.org/licenses/MIT\"><img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/remove-file-safe.svg\"></a></h2>\n\n[MIT](https://opensource.org/licenses/MIT)\n<!--END FOOTER-->\n\n<br />\n\n## Related Packages\n\n- [fs-safe](https://www.npmjs.com/package/fs-safe): A simple fs wrapper that doesn't throw\n- [read-file-safe](https://www.npmjs.com/package/remove-file-safe): Read files without try catch\n- [write-file-safe](https://www.npmjs.com/package/write-file-safe): Write files, and parent directories if necessary\n- [read-dir-safe](https://www.npmjs.com/package/read-dir-safe): Read directories recursively or non-recursively\n- [write-dir-safe](https://www.npmjs.com/package/write-dir-safe): Create directories and their parents recursively\n- [remove-dir-safe](https://www.npmjs.com/package/remove-dir-safe): Remove directories recursively or non-recursively\n","readmeFilename":"README.md","contributors":[{"name":"Connor White"}],"bugs":{"url":"https://github.com/bconnorwhite/remove-file-safe/issues"}}