Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1018 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 1018 Bytes

NPM Version NPM Downloads

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

License

MIT