Skip to main content

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