declare const pathExists: { /** Check if a path exists. @returns Whether the path exists. @example ``` // foo.ts import pathExists = require('path-exists'); (async () => { console.log(await pathExists('foo.ts')); //=> true })(); ``` */ (path: string): Promise<boolean>; /** Synchronously check if a path exists. @returns Whether the path exists. */ sync(path: string): boolean; }; export = pathExists;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
index.d.ts | File | 429 B | 0644 |
|
index.js | File | 347 B | 0644 |
|
license | File | 1.08 KB | 0644 |
|
package.json | File | 607 B | 0644 |
|
readme.md | File | 1.39 KB | 0644 |
|