\begin{quote}
Convert directories to glob compatible strings \end{quote}
\hypertarget{md_sfcode_node_modules_dir_glob_readme_autotoc_md8207}{}\doxysection{Install}\label{md_sfcode_node_modules_dir_glob_readme_autotoc_md8207}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install dir-\/glob }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const dirGlob = require('dir-\/glob');}
\DoxyCodeLine{}
\DoxyCodeLine{(async () => \{}
\DoxyCodeLine{    console.log(await dirGlob(['index.js', 'test.js', 'fixtures']));}
\DoxyCodeLine{    //=> ['index.js', 'test.js', 'fixtures/**']}
\DoxyCodeLine{}
\DoxyCodeLine{    console.log(await dirGlob(['index.js', 'inner\_folder'], \{cwd: 'fixtures'\}));}
\DoxyCodeLine{    //=> ['index.js', 'inner\_folder/**']}
\DoxyCodeLine{}
\DoxyCodeLine{    console.log(await dirGlob(['lib/**', 'fixtures'], \{}
\DoxyCodeLine{        files: ['test', 'unicorn']}
\DoxyCodeLine{        extensions: ['js']}
\DoxyCodeLine{    \}));}
\DoxyCodeLine{    //=> ['lib/**', 'fixtures/**/test.js', 'fixtures/**/unicorn.js']}
\DoxyCodeLine{}
\DoxyCodeLine{    console.log(await dirGlob(['lib/**', 'fixtures'], \{}
\DoxyCodeLine{        files: ['test', 'unicorn', '*.jsx'],}
\DoxyCodeLine{        extensions: ['js', 'png']}
\DoxyCodeLine{    \}));}
\DoxyCodeLine{    //=> ['lib/**', 'fixtures/**/test.\{js,png\}', 'fixtures/**/unicorn.\{js,png\}', 'fixtures/**/*.jsx']}
\DoxyCodeLine{\})(); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_dir_glob_readme_autotoc_md8209}{}\doxysection{API}\label{md_sfcode_node_modules_dir_glob_readme_autotoc_md8209}
\hypertarget{md_sfcode_node_modules_dir_glob_readme_autotoc_md8210}{}\doxysubsection{dir\+Glob(input, options?)}\label{md_sfcode_node_modules_dir_glob_readme_autotoc_md8210}
Returns a {\ttfamily Promise$<$string\mbox{[}\mbox{]}$>$} with globs.\hypertarget{md_sfcode_node_modules_dir_glob_readme_autotoc_md8211}{}\doxysubsection{dir\+Glob.\+sync(input, options?)}\label{md_sfcode_node_modules_dir_glob_readme_autotoc_md8211}
Returns a {\ttfamily string\mbox{[}\mbox{]}} with globs.\hypertarget{md_sfcode_node_modules_dir_glob_readme_autotoc_md8212}{}\doxysubsubsection{input}\label{md_sfcode_node_modules_dir_glob_readme_autotoc_md8212}
Type\+: {\ttfamily string $\vert$ string\mbox{[}\mbox{]}}

Paths.\hypertarget{md_sfcode_node_modules_dir_glob_readme_autotoc_md8213}{}\doxysubsubsection{options}\label{md_sfcode_node_modules_dir_glob_readme_autotoc_md8213}
Type\+: {\ttfamily object}\hypertarget{md_sfcode_node_modules_dir_glob_readme_autotoc_md8214}{}\doxyparagraph{extensions}\label{md_sfcode_node_modules_dir_glob_readme_autotoc_md8214}
Type\+: {\ttfamily string\mbox{[}\mbox{]}}

Append extensions to the end of your globs.\hypertarget{md_sfcode_node_modules_dir_glob_readme_autotoc_md8215}{}\doxyparagraph{files}\label{md_sfcode_node_modules_dir_glob_readme_autotoc_md8215}
Type\+: {\ttfamily string\mbox{[}\mbox{]}}

Only glob for certain files.\hypertarget{md_sfcode_node_modules_dir_glob_readme_autotoc_md8216}{}\doxyparagraph{cwd}\label{md_sfcode_node_modules_dir_glob_readme_autotoc_md8216}
Type\+: {\ttfamily string\mbox{[}\mbox{]}}

Test in specific directory. 