1.0.0 • Published 6 months ago

@levihub/pathexists v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

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.`);
}
1.0.0

6 months ago