diff options
author | Scoots Dash <contact@minteck.org> | 2022-04-23 14:12:30 +0000 |
---|---|---|
committer | Scoots Dash <contact@minteck.org> | 2022-04-23 14:12:30 +0000 |
commit | a927497b43cbe1438f3d7478932f3f7d03ea347c (patch) | |
tree | 0a3c88978b4294fb30afad58daa86c46fbedc2f6 /node_modules/@kwsites/file-exists/readme.md | |
parent | ba5fa694351774f2684c1aefdc215da5c6f39ba6 (diff) | |
parent | f0db5bbbcd623812a391862d217519afafe197c6 (diff) | |
download | twilight-a927497b43cbe1438f3d7478932f3f7d03ea347c.tar.gz twilight-a927497b43cbe1438f3d7478932f3f7d03ea347c.tar.bz2 twilight-a927497b43cbe1438f3d7478932f3f7d03ea347c.zip |
Disable the Twilight Package Manager
See merge request minteck/twilight!1
Diffstat (limited to 'node_modules/@kwsites/file-exists/readme.md')
-rw-r--r-- | node_modules/@kwsites/file-exists/readme.md | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/node_modules/@kwsites/file-exists/readme.md b/node_modules/@kwsites/file-exists/readme.md deleted file mode 100644 index 0db6d0f..0000000 --- a/node_modules/@kwsites/file-exists/readme.md +++ /dev/null @@ -1,41 +0,0 @@ -# @kwsites/file-exists - -Synchronous validation of a path existing either as a file or as a directory. - -``` -const { exists, FILE, FOLDER, READABLE } = require('@kwsites/file-exists'); - -// check for a folder existing -assert(exists(__dirname, FOLDER)); -assert(!exists(__filename, FOLDER)); - -// check for a file existing -assert(!exists(__filename, FILE)); -assert(exists(__filename, FILE)); - -// when no type is specified, both folders and files are allowed -assert(exists(__dirname)); -assert(exists(__filename)); - -// alternatively specify both files and folders -assert(exists(__dirname, FILE + FOLDER)); - -// or just that the path is readable (can be either a file or folder) -assert(exists(__filename, READABLE)); -``` - -## Troubleshooting - -This library uses [debug](https://www.npmjs.com/package/debug) to handle logging, -to enable logging, use either the environment variable: - -``` -"DEBUG=@kwsites/file-exists" node ./your-app.js -``` - -Or explicitly enable logging using the `debug` library itself: - -```javascript -require('debug').enable('@kwsites/file-exists'); -``` - |