Bakhtina Sofya b84cb877be 1st comm 3 долоо хоног өмнө
..
node_modules b84cb877be 1st comm 3 долоо хоног өмнө
index.js b84cb877be 1st comm 3 долоо хоног өмнө
license b84cb877be 1st comm 3 долоо хоног өмнө
package.json b84cb877be 1st comm 3 долоо хоног өмнө
readme.md b84cb877be 1st comm 3 долоо хоног өмнө

readme.md

path-type Build Status

Check if a path is a file, directory, or symlink

Install

$ npm install path-type

Usage

const pathType = require('path-type');

pathType.file('package.json').then(isFile => {
	console.log(isFile);
	//=> true
})

API

.file(path)

.dir(path)

.symlink(path)

Returns a Promise for a boolean of whether the path is the checked type.

.fileSync(path)

.dirSync(path)

.symlinkSync(path)

Returns a boolean of whether the path is the checked type.

License

MIT © Sindre Sorhus