@levihub/pathexists

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @levihub/pathexists

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.26 kB

Total Files

4

Last publish

Collaborators

  • leviatan1121