Allows to verify the existence of any directory on the computer.
$ npm install @brpereyra/directory-exists
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