Check if a path is a file, directory, or symlink
npm install path-type> Check if a path is a file, directory, or symlink
``sh`
npm install path-type
`js
import {isFile} from 'path-type';
console.log(await isFile('package.json'));
//=> true
`
Check whether the passed path is a file.
Returns a Promise.
#### path
Type: string
The path to check.
Check whether the passed path is a directory.
Returns a Promise.
Check whether the passed path is a symlink.
Returns a Promise.
Synchronously check whether the passed path is a file.
Returns a boolean.
Synchronously check whether the passed path is a directory.
Returns a boolean.
Synchronously check whether the passed path is a symlink.
Returns a boolean`.