Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Functions
f
exists(): Promise<boolean>
path: string | URL,
options?: ExistsOptions
Test whether or not the given path exists by checking with the file system. Please consider to check if the path is readable and either a file or a directory by providing additional options:
f
existsSync(): boolean
path: string | URL,
options?: ExistsOptions
Test whether or not the given path exists by checking with the file system. Please consider to check if the path is readable and either a file or a directory by providing additional options:
Interfaces
I
Options for exists and existsSync.
- isDirectory: boolean
When
true, will check if the path is a directory as well. Directory symlinks are included. - isFile: boolean
When
true, will check if the path is a file as well. File symlinks are included. - isReadable: boolean
When
true, will check if the path is readable by the user as well.