Skip to content

Leviatan1121/PathExists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A simple package to check if a path exists (based on 'fs' core package).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published