{"name":"path-type","version":"5.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"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && nyc ava && tsd"},"keywords":["path","fs","type","is","check","directory","file","filepath","symlink","symbolic","link","stat","stats","filesystem"],"devDependencies":{"ava":"^3.15.0","nyc":"^15.1.0","tsd":"^0.14.0","xo":"^0.37.1"},"gitHead":"80853698ad527c10fc692e71981345762e22f69b","bugs":{"url":"https://github.com/sindresorhus/path-type/issues"},"homepage":"https://github.com/sindresorhus/path-type#readme","_id":"path-type@5.0.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==","shasum":"14b01ed7aea7ddf9c7c3f46181d4d04f9c785bb8","tarball":"http://registry-npm.ywwl.com/path-type/download/path-type-5.0.0.tgz","fileCount":5,"unpackedSize":5645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEWIWCRA9TVsSAnZWagAAe0sP/jdaRw/8ha3K+YbSYnZ8\nnPP4T0d9cB0ko00oWEAD9AhDbl64O0/PBtui8K+Ytq8DS9/WtHliu8MzsSKC\nwwZbpMDxqMq5264YxSlVY2UIf7yaBJdvw4Jw1/a7zgHc0BzIZOoXIgk0Z4wQ\npPv4S2N+83emIrnReYDcEp55Omcr1tA7PAjrRlA0SYvmbmrs5xLoEEnT5GJu\nn+eZ0KrZodsdhvHogIp92JqKh78h01pQYqaKSEOKHSdy1G6DmzJHqZuspPnG\nffNRteTpzGNJYynms9pmZxVvuu7WdnnqkWdh5ACg3iHVDFbNHBa3F8IWJKJJ\nQia4oq5nBHyYSrrRIXa4seB+PYbcCCxSQd0NyDUv7QatYWeEUEfyl5ViMEsa\nUuT2HwFMKESHu0HlkgHt0kMHEx+cNoTbLljw22zK7HTqgVhmKIUPyyqCHowg\noKSLkZY6iN21QHu/jbuvSwTHmvnjnBrxCPmfloKCvnyfEDsAgxU7r4rw0KcD\nJKa5dke3Zf8xhwQUKjiCxU0J5e4m8mT8QWfKi41+jp6x4lpd+Z6huOUqE3M5\nZX+kW71dHSgoIAWriLvdMO/JprBIiy3uteHbTQ3kBmSsxOAS0gf3eaPBqqhf\nqK4vkVseZZ2KFbWA0VC0c2O2NOy5mdtxzGWl84HbVyu/i97E+zxVp4VFanCw\nS/77\r\n=09Z9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEvBaWwuRFIFccI2DCalufqLZSANPbEjMBvITznB1A+AAiEA/zNzcqTX01oVROfWAU64eG0hCLWV390N8ZsvvKcvUtM="}],"size":2190,"noattachment":false,"key":"/path-type/-/path-type-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-type_5.0.0_1611751958019_0.16773508773368095"},"_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":1611751958113,"_cnpm_publish_time":1611751958113,"dist-tags":{"latest":"6.0.0"}}