import filterValue from "./filterValue"; import maybeStats from "./maybeStats"; export default async ( path: string, opts?: { bigint?: Bigint; lstat?: boolean; } ) => filterValue(await maybeStats(path, opts), (s) => s?.isFile());