Returns true if a filepath exists on the file system and it\textquotesingle{}s directory.\hypertarget{md_sfcode_node_modules_is_directory_README_autotoc_md13081}{}\doxysection{Install}\label{md_sfcode_node_modules_is_directory_README_autotoc_md13081}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install is-\/directory -\/-\/save }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var isDirectory = require('is-\/directory');}
\DoxyCodeLine{}
\DoxyCodeLine{isDirectory('node\_modules', function(err, dir) \{}
\DoxyCodeLine{  if (err) throw err;}
\DoxyCodeLine{  console.log(dir);}
\DoxyCodeLine{  //=> true}
\DoxyCodeLine{\});}
\DoxyCodeLine{}
\DoxyCodeLine{isDirectory.sync('README.md');}
\DoxyCodeLine{//=> false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_directory_README_autotoc_md13083}{}\doxysection{Related projects}\label{md_sfcode_node_modules_is_directory_README_autotoc_md13083}
You might also be interested in these projects\+:


\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/is-absolute}{\texttt{ is-\/absolute}}\+: Polyfill for node.\+js {\ttfamily path.\+is\+Abolute}. Returns true if a file path is absolute. $\vert$ \href{https://github.com/jonschlinkert/is-absolute}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-glob}{\texttt{ is-\/glob}}\+: Returns {\ttfamily true} if the given string looks like a glob pattern or an extglob pattern.\+… \href{https://www.npmjs.com/package/is-glob}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/is-glob}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-relative}{\texttt{ is-\/relative}}\+: Returns {\ttfamily true} if the path appears to be relative. $\vert$ \href{https://github.com/jonschlinkert/is-relative}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_is_directory_README_autotoc_md13084}{}\doxysection{Contributing}\label{md_sfcode_node_modules_is_directory_README_autotoc_md13084}
Pull requests and stars are always welcome. For bugs and feature requests, \href{https://github.com/jonschlinkert/is-directory/issues/new}{\texttt{ please create an issue}}.\hypertarget{md_sfcode_node_modules_is_directory_README_autotoc_md13085}{}\doxysection{Building docs}\label{md_sfcode_node_modules_is_directory_README_autotoc_md13085}
Generate readme and API documentation with \href{https://github.com/verbose/verb}{\texttt{ verb}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install verb \&\& npm run docs }

\end{DoxyCode}


Or, if \href{https://github.com/verbose/verb}{\texttt{ verb}} is installed globally\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ verb }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_directory_README_autotoc_md13086}{}\doxysection{Running tests}\label{md_sfcode_node_modules_is_directory_README_autotoc_md13086}
Install dev dependencies\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/d \&\& npm test }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_directory_README_autotoc_md13087}{}\doxysection{Author}\label{md_sfcode_node_modules_is_directory_README_autotoc_md13087}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{http://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_is_directory_README_autotoc_md13088}{}\doxysection{License}\label{md_sfcode_node_modules_is_directory_README_autotoc_md13088}
Copyright © 2016, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}. Released under the \href{https://github.com/jonschlinkert/is-directory/blob/master/LICENSE}{\texttt{ MIT license}}.

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb}{\texttt{ verb}}, v0.\+9.\+0, on May 21, 2016.} 