conventional-changelog-action/node_modules/path-type
Tycho Bokdam 78aace1247
chore: Test release
2019-10-18 10:21:11 +02:00
..
node_modules/pify chore: Test release 2019-10-18 10:21:11 +02:00
index.js chore: Test release 2019-10-18 10:21:11 +02:00
license chore: Test release 2019-10-18 10:21:11 +02:00
package.json chore: Test release 2019-10-18 10:21:11 +02:00
readme.md chore: Test release 2019-10-18 10:21:11 +02:00

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)

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