isFile
Checks if the given path is a file.
- import the method
import { isFile } from "nodelpers";
- params
path: TPath;
TPath: fs.PathLike;
- usage
let path = "/path/to/your/file";
isFile(path); // true or false
Checks if the given path is a file.
import { isFile } from "nodelpers";
path: TPath;
TPath: fs.PathLike;
let path = "/path/to/your/file";
isFile(path); // true or false