webhook-action/node_modules/path-type
Joel Male e4e62ab7e8 Add node_modules until bundler is added 2020-08-26 09:57:08 +10:00
..
index.js Add node_modules until bundler is added 2020-08-26 09:57:08 +10:00
license Add node_modules until bundler is added 2020-08-26 09:57:08 +10:00
package.json Add node_modules until bundler is added 2020-08-26 09:57:08 +10:00
readme.md Add node_modules until bundler is added 2020-08-26 09:57:08 +10:00

readme.md

path-type Build Status

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

Install

$ npm install --save 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