1 # path-type [![Build Status](https://travis-ci.org/sindresorhus/path-type.svg?branch=master)](https://travis-ci.org/sindresorhus/path-type)
3 > Check if a path is a file, directory, or symlink
9 $ npm install path-type
16 const pathType = require('path-type');
18 pathType.file('package.json').then(isFile => {
31 Returns a `Promise` for a `boolean` of whether the path is the checked type.
35 ### .symlinkSync(path)
37 Returns a `boolean` of whether the path is the checked type.
42 MIT © [Sindre Sorhus](https://sindresorhus.com)