{"_id":"@depup/kwsites__file-exists","name":"@depup/kwsites__file-exists","dist-tags":{"latest":"1.1.1-depup.0"},"versions":{"1.1.1-depup.0":{"name":"@depup/kwsites__file-exists","version":"1.1.1-depup.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.4.3"},"description":"[DepUp] Dependency-bumped version of @kwsites/file-exists","keywords":["depup","dependency-bumped","updated-deps","@kwsites/file-exists"],"depup":{"changes":{"debug":{"from":"^4.1.1","to":"^4.4.3"}},"depsUpdated":1,"originalPackage":"@kwsites/file-exists","originalVersion":"1.1.1","processedAt":"2026-03-17T16:33:11.215Z","smokeTest":"passed"},"gitHead":"4696d3349a039de4b13745770d87bbf7fd3d5b12","_id":"@depup/kwsites__file-exists@1.1.1-depup.0","bugs":{"url":"https://github.com/kwsites/file-exists/issues"},"homepage":"https://github.com/kwsites/file-exists#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-KTVJNYxeWcy7QuKwfcM1vBmT3lJnmmGKsdMS0XyPZysS2k/y0pmrHE38qcWzJ1TR205BB0Tc0hYrG0ILAjx5Yw==","shasum":"e478314621fa28e9fcc7e9a0b6ab28ed2f9faf28","tarball":"https://registry.npmjs.org/@depup/kwsites__file-exists/-/kwsites__file-exists-1.1.1-depup.0.tgz","fileCount":17,"unpackedSize":15528,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC20BoPmpNHxWAxyX6u/khfgw0ly8TBCIjffBCOfjyJFQIgA8KwlCio53xMKZcF1k5domtg1oGLy7VquVj7kgUXCr4="}]},"_npmUser":{"name":"chiefmikey","email":"wolfemikl@gmail.com"},"directories":{},"maintainers":[{"name":"chiefmikey","email":"wolfemikl@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kwsites__file-exists_1.1.1-depup.0_1773765194560_0.8596567501360532"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-17T16:33:14.484Z","1.1.1-depup.0":"2026-03-17T16:33:14.722Z","modified":"2026-03-17T16:33:14.897Z"},"maintainers":[{"name":"chiefmikey","email":"wolfemikl@gmail.com"}],"description":"[DepUp] Dependency-bumped version of @kwsites/file-exists","homepage":"https://github.com/kwsites/file-exists#readme","keywords":["depup","dependency-bumped","updated-deps","@kwsites/file-exists"],"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","_rev":"1-530827ac0e0732261b3a59fa9dfacc6e"}