{"_id":"@kwsites/file-exists","_rev":"3-22669b4ff6f36a2e3661e56f4048c513","name":"@kwsites/file-exists","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@kwsites/file-exists","version":"1.0.0","main":"./dist/index.js","types":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/kwsites/file-exists.git"},"author":{"name":"Steve King","email":"steve@mydev.co"},"contributors":[{"name":"Steve King","email":"steve@mydev.co"}],"scripts":{"clean":"rimraf ./dist","build":"yarn run clean && tsc","preversion":"yarn run clean && yarn run build && yarn test","postversion":"npm publish --access=public && git push && git push --tags","test":"echo 'Write some tests'","tsc":"tsc"},"devDependencies":{"@types/node":"^10.12.0","rimraf":"^2.6.2","typescript":"^3.1.3"},"gitHead":"b7f76091180bbae5142e9ea30318728131e90c76","description":"Synchronous validation of a path existing either as a file or as a directory.","bugs":{"url":"https://github.com/kwsites/file-exists/issues"},"homepage":"https://github.com/kwsites/file-exists#readme","_id":"@kwsites/file-exists@1.0.0","_npmVersion":"6.3.0","_nodeVersion":"8.11.1","_npmUser":{"name":"steveukx","email":"steve@mydev.co"},"dist":{"integrity":"sha512-3pZ4FXS8sbjgCighOaB5qWAXo4F6SmuY5Ms+fAa8barGQyj0kzd4NzvjV5NVb1KdhtF8EawSxx5PaWxPUUqpKw==","shasum":"4bd9b8476ab98383845608535c1869a6fed64469","tarball":"https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.0.0.tgz","fileCount":9,"unpackedSize":5388,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0e8RCRA9TVsSAnZWagAAPKoP/jzoKGHFtATFvWcO+Qte\nYZmfzACLTPf5XOPsNWoVeXW950BrVZqRhEtvBu6OSbU19KrR2wdZKJBPyarr\nX+wJ54+SqvwhTBmlNvnafamLH3USe9bmN+XDj9IlsCUTb8ooBkhjTl2pCJKT\n2K2WQ9gxW5oCDCqoJix7ZIYXQxZ0yv2QBj1eYBXK4JHQh559HQwWG8OlVKNd\n5QwQLgL2MXtxhft/0njhsk9RGJOo6ebN2BPRP5eJFEZVhpR2tcKJwfLu5kAY\n5c73WI9ZbgRqWXUK+F2MYWTo1/UvCrR6OG+AeLSLEOY21rzoQ2WIgZdNFyZn\nNClc0GtxU5/wJH45nVM2xMmSVgCOlt30w7wGMigxmhFxch9PEupAkvUpmp3a\ndeoYmQiVLmzPgnrXg7TFc5xiPJYGiKa5UZcaLEboo8zTgTvdCaUzNBsRCgQz\nul+pWYfPLu49ywMHG8nSyxL6NelWosRmSp1NTlOZv31ZD+x18TDlt01nSYYP\nSxsvt/9mYSLI8c8xMAMraWw9DA2ZT1nv6fncdgxhC6rF+XwqJV0Xt9IN323+\n/kLj3wzKvEAzEBuPqNRBcnal9D7CA89GQpBFdTBA1VJsUBj6vza7AoI1S0BQ\n+sHyT6xU0Z4Sd/yoXurLBwJ8gu8uikVzuZPXejcI4nEZ+PUPY3z7vcZKC8+e\nFWue\r\n=mrV3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8kz1zAm9FZ3yFA87d9onkOIim1gWDJ+I9qCZJEhggDAIhAKt078AkyJKEsIdvYX9rqeNU/tKwwmX1QmWl7Y29iAyK"}]},"maintainers":[{"name":"steveukx","email":"steve@mydev.co"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-exists_1.0.0_1540484881180_0.9827798058298394"},"_hasShrinkwrap":false},"1.1.0":{"name":"@kwsites/file-exists","version":"1.1.0","main":"./dist/index.js","types":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/kwsites/file-exists.git"},"author":{"name":"Steve King","email":"steve@mydev.co"},"contributors":[{"name":"Steve King","email":"steve@mydev.co"}],"scripts":{"clean":"rimraf ./dist","build":"yarn run clean && tsc","preversion":"yarn run clean && yarn run build && yarn test","postversion":"npm publish --access=public && git push && git push --tags","test":"jest --coverage","tsc":"tsc"},"devDependencies":{"@babel/core":"^7.10.1","@babel/preset-env":"^7.10.1","@babel/preset-typescript":"^7.10.1","@types/debug":"^4.1.5","@types/jest":"^26.0.0","@types/node":"^10.12.0","babel-jest":"^26.0.1","jest":"^25.3.0","rimraf":"^2.6.2","ts-node":"^8.10.2","typescript":"^3.1.3"},"dependencies":{"debug":"^4.1.1"},"gitHead":"67bb9a8aeebbed7125d4fdf2eb088a63523d7ec4","description":"Synchronous validation of a path existing either as a file or as a directory.","bugs":{"url":"https://github.com/kwsites/file-exists/issues"},"homepage":"https://github.com/kwsites/file-exists#readme","_id":"@kwsites/file-exists@1.1.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-EQhGMbNjRoQQhOhgBNt62GyQ6eUUJl/lB5tpURz7feF7V0s3eGSwBNWxGLSUiOrQIbCAMriKd7e3mk1uF1lQaA==","shasum":"b420b88f6a9fa1cfd430384929cc17e95feb4c92","tarball":"https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.0.tgz","fileCount":16,"unpackedSize":14444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4KAeCRA9TVsSAnZWagAAw/UP/3ZwyMfGMqAUcFWtzAW9\nxPulPsotZ8Y2Y7FEwKF6CAWGI6fRckYM262StxcILTFPUOY4eI910I6+WZ+U\nWde32sHjKaPT7Hn0DCBFhi22GXDYnvEP3WcB9IKws2FEN/XUDKBELgp3spM4\nuoaCea4+QquvAt1iCkG+e+CgTAMrLt0gS+MldwD+JQPvNGupUv0Dy+PWTEje\nPIicjC/IkJGXVHzZMdqs9PFF5A7NyXC+iA1GIAmQ4ZH3esBk+WB1EnTVtCjV\nJ5AWCJOA0Y6mxZvcHvz3XC8Rjke+SggzH5BtKaQRls2FQzzfFdDmgXojJdsk\n5Qtz6naXpI7DyVt5b6lDiyTPkVR6kUjc6tofsSEj4Fnd2e+4814DAtyq+nLO\nhgWwyPHUuXCOjwQXcMlfAB1u6gNDyzu6WGUXv0nGBSgWvf58IOfu0NuvJGkd\n1EXey4ZIb7WaNO2EG1zaQpPiAzO18Bz2B4rdu794ahbmGK61YZtG7UGzzLF2\nv8wBebZdY76+R2n5yYhUEyEuW4oDhQPPFxL+4gbGnI34OKRDSw1iAngpS3FJ\nxJ0giQ2XEJ6LPy+8l6xBZCYb4TGUxAbcbfUgy4y07uljnJ0eNR0q3s1PBqle\nr5AFwWd7DaLU29z2hjn4vOOqVAkJck7AW1oPpTDLoLv+UHiRvJoeWpwmPL/k\nkTo8\r\n=MTCq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIESM49VuGthyDGrlkAI+HXh+ZdrBCWa2FMydmi8FPkBHAiBGmAT1g/EsohvjtQxY7EQGOTwLlvI7hAl90ILWlRk4/w=="}]},"maintainers":[{"name":"steveukx","email":"steve@mydev.co"}],"_npmUser":{"name":"steveukx","email":"steve@mydev.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-exists_1.1.0_1591779358325_0.3292723105416213"},"_hasShrinkwrap":false},"1.1.1":{"name":"@kwsites/file-exists","version":"1.1.1","main":"./dist/index.js","types":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/kwsites/file-exists.git"},"author":{"name":"Steve King","email":"steve@mydev.co"},"contributors":[{"name":"Steve King","email":"steve@mydev.co"}],"scripts":{"clean":"rimraf ./dist","build":"yarn run clean && tsc","preversion":"yarn run clean && yarn run build && yarn test","postversion":"npm publish --access=public && git push && git push --tags","test":"jest --coverage","tsc":"tsc"},"devDependencies":{"@babel/core":"^7.10.1","@babel/preset-env":"^7.10.1","@babel/preset-typescript":"^7.10.1","@types/debug":"^4.1.5","@types/jest":"^26.0.0","@types/node":"^10.12.0","babel-jest":"^26.0.1","jest":"^25.3.0","rimraf":"^2.6.2","ts-node":"^8.10.2","typescript":"^3.1.3"},"dependencies":{"debug":"^4.1.1"},"gitHead":"13f0789cbd8df52588acdd185cd33de3b77fb342","description":"Synchronous validation of a path existing either as a file or as a directory.","bugs":{"url":"https://github.com/kwsites/file-exists/issues"},"homepage":"https://github.com/kwsites/file-exists#readme","_id":"@kwsites/file-exists@1.1.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==","shasum":"ad1efcac13e1987d8dbaf235ef3be5b0d96faa99","tarball":"https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz","fileCount":16,"unpackedSize":14361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4KfbCRA9TVsSAnZWagAAxOYP/0vo7ZXouWN7+9BRYZi5\nYiTUP3XAxHi/SsicM9wmGbYWf1Jhx/ioHVEDJ1FXp7rDFu9FPtEgCcwpB8po\nF7m9aiM7wREnA6nuqoevy4FrKhWe21VvXfXJxoQw85d7+z99bpIPVnpSvmld\n46XeO4Q8yNXtueKkrvAOZhYvf6AZBFb1JQXoFiWf/zkAlJ2M3cevXYXnErIl\n8Wp0FrvP1N2relCPKjl1+KbWtY8eEFZ8uxZjRXyS0gl9dDUwRfiybVTdSlht\nO/+0Hnm6Wog91GNiO/I2JuIdhnaCfu/UiS0n6zkSV+PBjdjgGPGTxcaXjors\nnWVrUHSlAqcvUK003nYbg3c3cmKinoAOC/5tUgZg5ObyqlXeR3CDuNnx4AbY\na50mdAbr691IyB5foDbXBJtGHYUOI8ISWsBGCFhoZMoKdv5Bv9LJ2XtOIbJG\nDeYpx//P1d7lnw2rFQfMOHNlzKPCTm44H4tkIhvqjsHm9YbnJGMP0h0GPOht\nZf/vPko8TvO/dvxDl84pcss+mfzwHnjUaOuRel85obXiRrg9kAoy8IkXt/Iv\nPeQ0VNGde50SYPxh6Df23wsp+4hRjwfrCOLsdzHQ21xjUO7x+bpw2Ghm/WXo\nq8YriAnUlR2LRF+OQRnwQE8CbRB/IhXJxhwLcfnOdm0D6vxfHYPW09Vy04td\niMHH\r\n=YYIO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBwzUgkN5U2Un+C5o4ibxYUSGk9BibHGetXPGYGFF5PgIgOYLEUfLBPP5mplvfcC8aGTtmkWmZciqr3FJzTROCjn4="}]},"maintainers":[{"name":"steveukx","email":"steve@mydev.co"}],"_npmUser":{"name":"steveukx","email":"steve@mydev.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-exists_1.1.1_1591781339406_0.850251292376327"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-25T16:28:01.122Z","1.0.0":"2018-10-25T16:28:01.298Z","modified":"2022-04-06T00:31:41.525Z","1.1.0":"2020-06-10T08:55:58.448Z","1.1.1":"2020-06-10T09:28:59.588Z"},"maintainers":[{"name":"steveukx","email":"steve@mydev.co"}],"description":"Synchronous validation of a path existing either as a file or as a directory.","homepage":"https://github.com/kwsites/file-exists#readme","repository":{"type":"git","url":"git+ssh://git@github.com/kwsites/file-exists.git"},"contributors":[{"name":"Steve King","email":"steve@mydev.co"}],"author":{"name":"Steve King","email":"steve@mydev.co"},"bugs":{"url":"https://github.com/kwsites/file-exists/issues"},"license":"MIT","readme":"# @kwsites/file-exists\n\nSynchronous validation of a path existing either as a file or as a directory.\n\n```\nconst { exists, FILE, FOLDER, READABLE } = require('@kwsites/file-exists');\n\n// check for a folder existing\nassert(exists(__dirname, FOLDER));\nassert(!exists(__filename, FOLDER));\n\n// check for a file existing\nassert(!exists(__filename, FILE));\nassert(exists(__filename, FILE));\n\n// when no type is specified, both folders and files are allowed\nassert(exists(__dirname));\nassert(exists(__filename));\n\n// alternatively specify both files and folders\nassert(exists(__dirname, FILE + FOLDER));\n\n// or just that the path is readable (can be either a file or folder)\nassert(exists(__filename, READABLE));\n```\n\n## Troubleshooting\n\nThis library uses [debug](https://www.npmjs.com/package/debug) to handle logging,\nto enable logging, use either the environment variable:\n\n```\n\"DEBUG=@kwsites/file-exists\" node ./your-app.js \n``` \n\nOr explicitly enable logging using the `debug` library itself:\n\n```javascript\nrequire('debug').enable('@kwsites/file-exists');\n``` \n\n","readmeFilename":"readme.md"}