{"name":"path-type","version":"1.0.0","description":"Check if a path is a file, directory, or symlink","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/path-type"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["path","fs","type","is","check","directory","dir","file","filepath","symlink","symbolic","link","stat","stats","filesystem"],"dependencies":{"graceful-fs":"^4.1.2","pify":"^2.0.0","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"b29ddf1e71fe346a1034e3914efb70287e2ddf64","bugs":{"url":"https://github.com/sindresorhus/path-type/issues"},"homepage":"https://github.com/sindresorhus/path-type","_id":"path-type@1.0.0","_shasum":"51b127d4884100f5808256e45d471716ba16f62d","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"51b127d4884100f5808256e45d471716ba16f62d","tarball":"http://registry-npm.ywwl.com/path-type/download/path-type-1.0.0.tgz","integrity":"sha512-6vHV8A6LCjbZZFxCc3D1BngIa4zlqLX89NKNpMRMrA8fVSVNZmWwyeW8SEvOhd+wAlhEnOm16lArD9bF/daNiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq8ZVG17Svv9YasxS+tjXgpRvF4VLs6K1Od3DbkoqskgIhALIxlGJjQgdnR7eys7jxcxpwZi150z6oNSoneDYxXj1s"}],"size":1776,"noattachment":false,"key":"/path-type/-/path-type-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# path-type\n\n> Check if a path is a file, directory, or symlink\n\n## Install\n\n```\n$ npm install path-type\n```\n\n## Usage\n\n```js\nimport {isFile} from 'path-type';\n\nconsole.log(await isFile('package.json'));\n//=> true\n```\n\n## API\n\n### isFile(path)\n\nCheck whether the passed `path` is a file.\n\nReturns a `Promise<boolean>`.\n\n#### path\n\nType: `string`\n\nThe path to check.\n\n### isDirectory(path)\n\nCheck whether the passed `path` is a directory.\n\nReturns a `Promise<boolean>`.\n\n### isSymlink(path)\n\nCheck whether the passed `path` is a symlink.\n\nReturns a `Promise<boolean>`.\n\n### isFileSync(path)\n\nSynchronously check whether the passed `path` is a file.\n\nReturns a `boolean`.\n\n### isDirectorySync(path)\n\nSynchronously check whether the passed `path` is a directory.\n\nReturns a `boolean`.\n\n### isSymlinkSync(path)\n\nSynchronously check whether the passed `path` is a symlink.\n\nReturns a `boolean`.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-path-type?utm_source=npm-path-type&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1441355755517,"_cnpm_publish_time":1441355755517,"dist-tags":{"latest":"6.0.0"}}