{"_id":"dir-exists-safe","_rev":"3-bfe5cc5c7a70ec6f98df526a0aba7093","name":"dir-exists-safe","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"dir-exists-safe","version":"1.0.0","description":"Check if a directory exists without a try catch","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/dir-exists-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/dir-exists-safe.git"},"keywords":[],"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":"dir-exists-safe@1.0.0","dist":{"shasum":"6ce9c4106705c166b4b93f965f17a6a6a2db760b","integrity":"sha512-Oq0g+co5MfTe+9vDaJd7qZXO8VFu+zpSH+UMxygCTvYLvxAMXqvNJqJpvybDoNuI+UkOLaFQmHp/y+PcVGcv1w==","tarball":"https://registry.npmjs.org/dir-exists-safe/-/dir-exists-safe-1.0.0.tgz","fileCount":7,"unpackedSize":5027,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfd9svCRA9TVsSAnZWagAAb4wP/3I1dLjCAVKjJspETPEZ\nQNQVAf9pek20P+cWZzEExqh+BZG3WuZgCQriZDRZh5zjUc89tFfxx6Od70rm\nLyckWVDe1cik5CsmY9MwiEmkmkfqeg1ECYCSr35JIlyPqd2x/iGvdEx8n/sE\n6TEIIkvBFujiO3YPG33gro+93C0MRCDITfowdFfjAbj5bUebijHb2F59J4iR\n/aamNoKch4XiIK6P3fBkW5LhGyvwsOdwYYCobusF5kLhVKy8v+sARE/Sl9EC\nvxon9eNIidQvRdxKzfnL8H94iZbS3pHMcR0RYgAiCr/ApFAHLniomz1sanHf\nNwS7EqSZ6lHGSZSDd+YHGNXny7cka7fUUUYejozBE8MpgcptmJOHn3HZIKPI\nA8wyNbFQZBSTucE31uZSq8sAag3FDQTNBvn5D18wTTtkB3xeqyoWPf5YMz17\n+L6KbexWBp4j2fXGTRsMMpp59EwIzoNrTVktN7oiQoMe4MHFUOw8R9f6zNDz\nqEpXqYhQGNfxZ6ssjcoHd6HPodEMkTrzEZ1N+oq2Y1Lm42h4AGtC+YAh83sT\nhxnXcB8aHFImXX7qGZn0vhZ5rKy4BMrXK50Q9ZXCPKPc5Qn+WLZTmKodZyIX\nyDHk/yZV1Bc2Ul4YiPHwRa9kjW+5HLIjzhHqP55EBOD1ltyw4kM/Ap/yV6XB\n/1Fa\r\n=QsuM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJPolgr+qeZrjOhipG8YL0TZxxMxnwnPlcQU1nUPUNgQIhAPSjfvL3uIrvGPYKZSNsVFlBwLkw02xJfcwNhRlQVnEg"}]},"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/dir-exists-safe_1.0.0_1601690415286_0.8651297691356117"},"_hasShrinkwrap":false},"1.0.1":{"name":"dir-exists-safe","version":"1.0.1","description":"Check if a directory exists without try catch","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/dir-exists-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/dir-exists-safe.git"},"keywords":[],"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":"dir-exists-safe@1.0.1","dist":{"shasum":"efa3f0ec7791cc70de57bb49b6fc60459c9428b3","integrity":"sha512-v1jZGrhJAtX5OEvMKCJJPhIN0E22mybyf4kjHTKFHKBce6Hks1F5PxqpiYDMjli2IfUhp2TDubmePZNEjY025A==","tarball":"https://registry.npmjs.org/dir-exists-safe/-/dir-exists-safe-1.0.1.tgz","fileCount":7,"unpackedSize":5320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfegPrCRA9TVsSAnZWagAAhaYP/iBOO2zMb/H0b8Frz7/4\nlwgIkUafZnPIOaPS0oZ1cAH+qiKilkZtKGe++8S8XOg1DxAH/7Y73GeWFoje\nowE+ALyKD6N6HnqJJ9lpcLpq83tGmxQv5pAxTkSoEtk1p7VClXkvRRXXlEWw\n9PS/66rjCV6JoIq+LPglWx5w6ZZ1CsA5Hmy7MBwNFJrspLcvYbSi/Z6BBL6P\nBfg6oC62Xmk/MaEbVmxhQnj6TSZBPi6cdP0c6mTuO+LZ+oOabB0RJz4xD6RD\nzUc3D02se1+f7AiR04FN1uDv+eyHSCUsZMA6qEyYDAxOJo2J9WjEZu4NXUlK\n4UB5t1+0kFo36NzROppy4qJQmdRwev84IvkLM7lGe9iWpooPd40Ddm47xgZV\nGuOeU2c555bmfakBA8JfrCqjYS9fThNhRzrfR+je1z6d1Snsw7rOwOCMYevs\nGearcQ/XaYtNwd/jkKETJ9gMF2NXcGbqqKkz5PCCnmRtR3TO19BWPmyYSnND\nED2qJGATx+wPKO4t2PcZ0AjOuqf7zNsTHqW+XTcvGW0L8GEYK03pSrhf/V6m\nR4Ve7Ne4W658avR2O/DF0IvX8m8Uh4oCRAHUvTM1r9N/LA2LaItDg2axUcAy\nQvdWHFt8VdFekK6VqwKTIFoNwKdhiWwr9eFYH93W1wVVcp7PcpHPy4AQQ4OA\n1vpu\r\n=Rq2K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHw6Mj7mEZ0U1yoCicLeXkeEon9JEK4mFe1GBa60IDiOAiB2QKlvfsXRpcebtRSNEXFLQU8TqHdW3Bhc3vP1hwlJBA=="}]},"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/dir-exists-safe_1.0.1_1601831914765_0.6274028649152152"},"_hasShrinkwrap":false},"1.1.0":{"name":"dir-exists-safe","version":"1.1.0","description":"Check if a directory exists without try catch","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/dir-exists-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/dir-exists-safe.git"},"keywords":["dir","directory","file","folder","exists","exist","check","if","safe","without","try","catch","fs-safe"],"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.4","@types/mock-fs":"^4.13.0","@types/node":"^14.14.37","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":"dir-exists-safe@1.1.0","dist":{"shasum":"1dfd07afd1bce0e1a6a5cd1c24e35c9b0a0867ff","integrity":"sha512-QbUvIJVIRN3zUdJlD+p4d8v2i8J5ISImhjWA7rcKc69XY5T1u850AVQqnvtiIQOJwGK+fBYGP8Tdw1d8cvXPvw==","tarball":"https://registry.npmjs.org/dir-exists-safe/-/dir-exists-safe-1.1.0.tgz","fileCount":7,"unpackedSize":6295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdaEdCRA9TVsSAnZWagAAgVcP/jRHxYfmF1uPgSIxjhVy\nSppBvVQLqSEyz0aAxC9D7TNX+sU9wYWvZ8TuV4M82wYUO8OWYTN8OzcPrE77\nJhJa6XQuWeH3iLg52gqKDiX2frqQvrpcIdrjlvXnSeZ6ah2LE6+i3cRSKMj6\ncrNO0fBmeujw27QOCL30Xs3hUW7zAPm4dzVxV5IO42YMRWCY5VGng9RZs9i1\nyE+gd3ETtSwUjKG8EVZPhqX7/rIzFL1gTKXm3T1wAritZB/ZKQV946EdXOe+\n+DOWiebB3VASLB3dyVOnjFI1VSE1jMPqY9HekuaAvagl5ap7EAWBELjGCt9s\nxtBqKoxjIKQqRH9VAJmcOvjmnM5yj+ttG0cHuR/GXjiLtwuwbXw4H+85hr57\nqhrSwTWmBy7yJAaE7+O19SriZDN2b6NyoqlqQ0ysfc8Mj8+1XC74cBk813s8\nyRQUsSeUWTDt4TWo7VEUfzO626O/O72s5Yrv3YU84hFdimoahftiOH0HKl/K\nWkexlA3MzlKBhIIKwP4MHbrIYhHqyprh7aURHpStmzF+oE2dBp1aI0Ag8efe\n7ucg5KN3+IcxB4EIsZflZbGOYFjqsxzM4ERcGBXewIQ0+f5iN87ep65ul+1u\ngXKJTPl3n4pqgm7jEfZrkrHEHlJ9oxfTG9jdWf4qiCTw2IAkPz+PPR3y/y3X\nbO9B\r\n=nMnC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG62RL9TSAjZl+b6jxnH1KbHZCT7klnEmwyXyx21i4nJAiAcaaLobcc+rk7A2uNk52inSuQAilsHi8BhUcCTxBi4EQ=="}]},"_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/dir-exists-safe_1.1.0_1618321692618_0.32908824395038017"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-03T02:00:15.286Z","1.0.0":"2020-10-03T02:00:15.411Z","modified":"2022-04-28T20:49:02.716Z","1.0.1":"2020-10-04T17:18:34.917Z","1.1.0":"2021-04-13T13:48:12.796Z"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"description":"Check if a directory exists without try catch","homepage":"https://connorwhite.org/github/dir-exists-safe","keywords":["dir","directory","file","folder","exists","exist","check","if","safe","without","try","catch","fs-safe"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/dir-exists-safe.git"},"author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"license":"MIT","readme":"<div align=\"center\">\n  <a href=\"https://github.com/bconnorwhite/dir-exists-safe\">\n    <img alt=\"dir-exists-safe\" src=\"assets/header.svg\" />\n  </a>\n  <a href=\"https://npmjs.com/package/dir-exists-safe\">\n    <img alt=\"NPM\" src=\"https://img.shields.io/npm/v/dir-exists-safe.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/dir-exists-safe\">\n    <img alt=\"TypeScript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/dir-exists-safe.svg\">\n  </a>\n  <a href='https://coveralls.io/github/bconnorwhite/dir-exists-safe?branch=master'>\n    <img alt=\"Coverage Status\" src=\"https://img.shields.io/coveralls/github/bconnorwhite/dir-exists-safe.svg?branch=master\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/dir-exists-safe\">\n    <img alt=\"GitHub Stars\" src=\"https://img.shields.io/github/stars/bconnorwhite/dir-exists-safe?label=Stars%20Appreciated%21&style=social\">\n  </a>\n  <a href=\"https://twitter.com/bconnorwhite\">\n    <img alt=\"Twitter Follow\" src=\"https://img.shields.io/twitter/follow/bconnorwhite.svg?label=%40bconnorwhite&style=social\">\n  </a>\n</div>\n\n<br />\n\n> Check if a directory exists without try catch.\n\n- Returns `true` if the path exists and is a directory.\n- Returns `false` if the path is not a directory, or does not exist.\n- Returns `undefined` on other errors (for example, permission denied) rather than throwing.\n\n## Installation\n\n```sh\nyarn add dir-exists-safe\n```\n\n```sh\nnpm install dir-exists-safe\n```\n\n## API\n\n```ts\nimport { dirExists, dirExistsSync, Options } from \"dir-exists-safe\";\n\nfunction dirExists(path: string, options?: Options): Promise<boolean | undefined>;\n\nfunction dirExistsSync(path: string, options?: Options): boolean | undefined;\n\ntype Options = {\n  /**\n   * Return true if path is file. Default: `false`\n   */\n  includeFiles?: boolean;\n}\n```\n\n<br />\n\n<h2>Dev Dependencies<img align=\"right\" alt=\"David\" src=\"https://img.shields.io/david/dev/bconnorwhite/dir-exists-safe.svg\"></h2>\n\n- [@bconnorwhite/bob](https://www.npmjs.com/package/@bconnorwhite/bob): Bob is a toolkit for typescript projects\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- [mock-fs](https://www.npmjs.com/package/mock-fs): A configurable mock file system.  You know, for testing.\n\n<br />\n\n<h2>License <img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/dir-exists-safe.svg\"></h2>\n\n[MIT](https://opensource.org/licenses/MIT)\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- [file-exists-safe](https://www.npmjs.com/package/file-exists-safe): Check if a file exists without a try catch\n","readmeFilename":"README.md"}