@levihub/pathexists
v1.0.0
Published
A simple package to check if a path exists (based on 'fs' core package).
Downloads
2
Readme
Installation
npm i @levihub/pathexists
Declaration
const exists = require("@levihub/pathexists");
// or
import exists from "@levihub/pathexists";
Usage/Examples
let res = exists(fileOrFolderPath); // returns true or false
if (res) {
console.log(`${fileOrFolderPath} exists.`);
} else {
console.log(`${fileOrFolderPath} does not exists.`);
}