{"name":"path-type","version":"4.0.0","description":"Check if a path is a file, directory, or symlink","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-type.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava && tsd-check"},"keywords":["path","fs","type","is","check","directory","dir","file","filepath","symlink","symbolic","link","stat","stats","filesystem"],"devDependencies":{"ava":"^1.3.1","nyc":"^13.3.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"b60678846423629b1293955d88a41f7e1d87c338","bugs":{"url":"https://github.com/sindresorhus/path-type/issues"},"homepage":"https://github.com/sindresorhus/path-type#readme","_id":"path-type@4.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==","shasum":"84ed01c0a7ba380afe09d90a8c180dcd9d03043b","tarball":"http://registry-npm.ywwl.com/path-type/download/path-type-4.0.0.tgz","fileCount":5,"unpackedSize":5407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch3r+CRA9TVsSAnZWagAAXCwP/i3YXQCag+djGYx7vbEZ\nayJrjUO2kv8l82x9wmSuKMq/w2jXiYvWJd/WKrBOaRi+XSEd/ifBDubDY7xd\na9iCPiB8RIwQ935nv8s/yiGsNlus9hDd1BAS7/g0UvUZ4JTh3oT+aSQdgUqW\nDzGe1pxZXD1zeUuGsOB70k7DXuA+dt0LnK35SjJ57D8HYEDyIanoz6Ykq8iY\ntQnVHeREe4cbDg7CC/A5OaRIM9x22hOZ9HgNHPA7S3uMFRShAXI8peQFtUJw\nGe+4fjS7ZXJ7/3HGtzTd6h12DousvCDkEO8dg6eNARF2ra2krB++gdCEy4o3\neJTgRKM5205RFFSRSRO7kbT/dENs3I2n1Njo4fDNkoVgLC2MrWmSdHDWq5yz\n9unvgTA+YB2Fb2iDr9b9CVm5OhgeYGnYRdrBYYp4kZFDuqttokEVnHMEdbxw\nInX0//sctRcyUjgloIOTgyK9ivqwNEE8Td6rFtUcpstzH/s2N/7ml5uOwU2o\npL5zcp7j6fSmqtV+DoFwhnZqQqqnGp/Gid1sNtQEM7UBca0aRK5RDKU9ssJU\n/OlatxglCGsNv9uJhADn48IItHIVbIc9NdLbeq0JMgY4Rju1GVCT/3T4YavJ\ne0Hf/l5Wg+QYS+Wuq8UGTHoqd9nZJGh4jUClZQWz3G2PJfWwRIMD6Dh3BaCa\nYuv6\r\n=3kA7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+lu5NiqBtsCvpIBUTwtuSNQ6kbmB8x20uiPjCIMqyuwIhAJSxTs44qtAD7XhqegwdkT6iYrp+u1o3ldiqljnmg4WJ"}],"size":2018,"noattachment":false,"key":"/path-type/-/path-type-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-type_4.0.0_1552382718141_0.897837094933279"},"_hasShrinkwrap":false,"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":1552382718333,"_cnpm_publish_time":1552382718333,"dist-tags":{"latest":"6.0.0"}}