\begin{quote}
Check if a path is inside another path \end{quote}
\hypertarget{md_sfcode_node_modules_protractor_node_modules_is_path_inside_readme_autotoc_md22805}{}\doxysection{Install}\label{md_sfcode_node_modules_protractor_node_modules_is_path_inside_readme_autotoc_md22805}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var isPathInside = require('is-\/path-\/inside');}
\DoxyCodeLine{}
\DoxyCodeLine{isPathInside('a/b/c', 'a/b');}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{isPathInside('a/b/c', 'x/y');}
\DoxyCodeLine{//=> false}
\DoxyCodeLine{}
\DoxyCodeLine{isPathInside('a/b/c', 'a/b/c');}
\DoxyCodeLine{//=> false}
\DoxyCodeLine{}
\DoxyCodeLine{isPathInside('/Users/sindresorhus/dev/unicorn', '/Users/sindresorhus');}
\DoxyCodeLine{//=> true }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_protractor_node_modules_is_path_inside_readme_autotoc_md22807}{}\doxysection{License}\label{md_sfcode_node_modules_protractor_node_modules_is_path_inside_readme_autotoc_md22807}
MIT © \href{http://sindresorhus.com}{\texttt{ Sindre Sorhus}} 