0.0.5 • Published 4 years ago
@brpereyra/directory-exists v0.0.5
Directory Exist
Allows to verify the existence of any directory on the computer.
Install
$ npm install @brpereyra/directory-exists
Examples
const de = require("@brpereyra/directory-exists");
const exists = de.directoryExists("path/to/directory");
console.log(exists); // return true if the directory exists
Or
const { directoryExists } = require("@brpereyra/directory-exists");
const exists = directoryExists("path/to/directory");
console.log(exists); // return true if the directory exists