\begin{quote}
Check if a path is a file, directory, or symlink \end{quote}
\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20321}{}\doxysection{Install}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20321}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install path-\/type }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20322}{}\doxysection{Usage}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20322}

\begin{DoxyCode}{0}
\DoxyCodeLine{const \{isFile\} = require('path-\/type');}
\DoxyCodeLine{}
\DoxyCodeLine{(async () => \{}
\DoxyCodeLine{    console.log(await isFile('package.json'));}
\DoxyCodeLine{    //=> true}
\DoxyCodeLine{\})(); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20323}{}\doxysection{API}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20323}
\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20324}{}\doxysubsection{is\+File(path)}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20324}
Check whether the passed {\ttfamily path} is a file.

Returns a {\ttfamily Promise$<$boolean$>$}.\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20325}{}\doxysubsubsection{path}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20325}
Type\+: {\ttfamily string}

The path to check.\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20326}{}\doxysubsection{is\+Directory(path)}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20326}
Check whether the passed {\ttfamily path} is a directory.

Returns a {\ttfamily Promise$<$boolean$>$}.\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20327}{}\doxysubsection{is\+Symlink(path)}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20327}
Check whether the passed {\ttfamily path} is a symlink.

Returns a {\ttfamily Promise$<$boolean$>$}.\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20328}{}\doxysubsection{is\+File\+Sync(path)}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20328}
Synchronously check whether the passed {\ttfamily path} is a file.

Returns a {\ttfamily boolean}.\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20329}{}\doxysubsection{is\+Directory\+Sync(path)}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20329}
Synchronously check whether the passed {\ttfamily path} is a directory.

Returns a {\ttfamily boolean}.\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20330}{}\doxysubsection{is\+Symlink\+Sync(path)}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20330}
Synchronously check whether the passed {\ttfamily path} is a symlink.

Returns a {\ttfamily boolean}.\hypertarget{md_sfcode_node_modules_path_type_readme_autotoc_md20331}{}\doxysection{License}\label{md_sfcode_node_modules_path_type_readme_autotoc_md20331}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}} 