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

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const 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_is_path_inside_readme_autotoc_md13174}{}\doxysection{License}\label{md_sfcode_node_modules_is_path_inside_readme_autotoc_md13174}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}} 