UNPKG

@visulima/fs

Version:

Human friendly file system utilities for Node.js

8 lines (7 loc) 302 B
import type { Stats } from "node:fs"; export type PathType = "dir" | "file" | "symlink"; /** * Get a human-readable file type string. * @param fileInfo A FileInfo describes a file and is returned by `stat`, `lstat` */ export declare const getFileInfoType: (fileInfo: Stats) => PathType | undefined;