\begin{quote}
Node.\+js \href{https://nodejs.org/api/path.html\#path_path_dirname_path}{\texttt{ {\ttfamily path.\+dirname()}}} \href{https://ponyfill.com}{\texttt{ ponyfill}} \end{quote}
This was needed in order to expose {\ttfamily path.\+posix.\+dirname()} on Node.\+js v0.\+10\hypertarget{md_sfcode_node_modules_path_dirname_readme_autotoc_md20269}{}\doxysection{Install}\label{md_sfcode_node_modules_path_dirname_readme_autotoc_md20269}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const pathDirname = require('path-\/dirname');}
\DoxyCodeLine{}
\DoxyCodeLine{pathDirname('/home/foo');}
\DoxyCodeLine{//=> '/home'}
\DoxyCodeLine{pathDirname('C:\(\backslash\)\(\backslash\)Users\(\backslash\)\(\backslash\)foo');}
\DoxyCodeLine{//=> 'C:\(\backslash\)\(\backslash\)Users'}
\DoxyCodeLine{pathDirname('foo');}
\DoxyCodeLine{//=> '.'}
\DoxyCodeLine{pathDirname('foo/bar');}
\DoxyCodeLine{//=> 'foo'}
\DoxyCodeLine{}
\DoxyCodeLine{//Using posix version for consistent output when dealing with glob escape chars}
\DoxyCodeLine{pathDirname.win32('C:\(\backslash\)\(\backslash\)Users\(\backslash\)\(\backslash\)foo/\(\backslash\)\(\backslash\)*bar');}
\DoxyCodeLine{//=> 'C:\(\backslash\)\(\backslash\)Users\(\backslash\)\(\backslash\)foo/'}
\DoxyCodeLine{pathDirname.posix('C:\(\backslash\)\(\backslash\)Users\(\backslash\)\(\backslash\)foo/\(\backslash\)\(\backslash\)*bar');}
\DoxyCodeLine{//=> 'C:\(\backslash\)\(\backslash\)Users\(\backslash\)\(\backslash\)foo' }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_path_dirname_readme_autotoc_md20271}{}\doxysection{API}\label{md_sfcode_node_modules_path_dirname_readme_autotoc_md20271}
See the \href{https://nodejs.org/api/path.html\#path_path_dirname_path}{\texttt{ {\ttfamily path.\+dirname()} docs}}.\hypertarget{md_sfcode_node_modules_path_dirname_readme_autotoc_md20272}{}\doxysubsection{path\+Dirname(path)}\label{md_sfcode_node_modules_path_dirname_readme_autotoc_md20272}
\hypertarget{md_sfcode_node_modules_path_dirname_readme_autotoc_md20273}{}\doxysubsection{path\+Dirname.\+posix(path)}\label{md_sfcode_node_modules_path_dirname_readme_autotoc_md20273}
POSIX specific version.\hypertarget{md_sfcode_node_modules_path_dirname_readme_autotoc_md20274}{}\doxysubsection{path\+Dirname.\+win32(path)}\label{md_sfcode_node_modules_path_dirname_readme_autotoc_md20274}
Windows specific version.\hypertarget{md_sfcode_node_modules_path_dirname_readme_autotoc_md20275}{}\doxysection{License}\label{md_sfcode_node_modules_path_dirname_readme_autotoc_md20275}
MIT 