hos-find-file
v1.0.3
Published
A module to find a file in a directory
Downloads
2
Readme
hos-find-file
A module to find a file in a directory.
Installation
To install the package, run: npm install find-file-demo
Usage
To use the package, simply require it in your code and call the findFile()
function, passing in the directory and file name as arguments:
const hosFindFile = require("hos-find-file");
const fileDir = "xxx";
const fileName = "index.js";
const result = hosFindFile.hasFileInDirectory(fileDir, fileName);
console.log(result);
const hasFileResult = hosFindFile.hasFile("xxx");