\begin{quote}
Extends \href{https://github.com/isaacs/node-glob}{\texttt{ glob}} with support for multiple patterns and exposes a Promise API \end{quote}
\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11281}{}\doxysection{Install}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11281}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{├── unicorn}
\DoxyCodeLine{├── cake}
\DoxyCodeLine{└── rainbow }

\end{DoxyCode}



\begin{DoxyCode}{0}
\DoxyCodeLine{const globby = require('globby');}
\DoxyCodeLine{}
\DoxyCodeLine{globby(['*', '!cake']).then(paths => \{}
\DoxyCodeLine{    console.log(paths);}
\DoxyCodeLine{    //=> ['unicorn', 'rainbow']}
\DoxyCodeLine{\}); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11283}{}\doxysection{API}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11283}
\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11284}{}\doxysubsection{globby(patterns, \mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11284}
Returns a Promise for an array of matching paths.\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11285}{}\doxysubsection{globby.\+sync(patterns, \mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11285}
Returns an array of matching paths.\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11286}{}\doxysubsection{globby.\+generate\+Glob\+Tasks(patterns, \mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11286}
Returns an array of objects in the format {\ttfamily \{ pattern\+: string, opts\+: Object \}}, which can be passed as arguments to \href{https://github.com/isaacs/node-glob}{\texttt{ {\ttfamily node-\/glob}}}. This is useful for other globbing-\/related packages.

Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11287}{}\doxysubsection{globby.\+has\+Magic(patterns, \mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11287}
Returns a {\ttfamily boolean} of whether there are any special glob characters in the {\ttfamily patterns}.

Note that the options affect the results. If {\ttfamily noext\+: true} is set, then {\ttfamily +(a$\vert$b)} will not be considered a magic pattern. If the pattern has a brace expansion, like {\ttfamily a/\{b/c,x/y\}}, then that is considered magical, unless {\ttfamily nobrace\+: true} is set.\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11288}{}\doxysubsubsection{patterns}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11288}
Type\+: {\ttfamily string} {\ttfamily Array}

See supported {\ttfamily minimatch} \href{https://github.com/isaacs/minimatch\#usage}{\texttt{ patterns}}.\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11289}{}\doxysubsubsection{options}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11289}
Type\+: {\ttfamily Object}

See the {\ttfamily node-\/glob} \href{https://github.com/isaacs/node-glob\#options}{\texttt{ options}}.\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11290}{}\doxysection{Globbing patterns}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11290}
Just a quick overview.


\begin{DoxyItemize}
\item {\ttfamily $\ast$} matches any number of characters, but not {\ttfamily /}
\item {\ttfamily ?} matches a single character, but not {\ttfamily /}
\item {\ttfamily $\ast$$\ast$} matches any number of characters, including {\ttfamily /}, as long as it\textquotesingle{}s the only thing in a path part
\item {\ttfamily \{\}} allows for a comma-\/separated list of \char`\"{}or\char`\"{} expressions
\item {\ttfamily !} at the beginning of a pattern will negate the match
\end{DoxyItemize}

\href{https://github.com/sindresorhus/multimatch/blob/master/test.js}{\texttt{ Various patterns and expected matches.}}\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11291}{}\doxysection{Related}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11291}

\begin{DoxyItemize}
\item \href{https://github.com/sindresorhus/multimatch}{\texttt{ multimatch}} -\/ Match against a list instead of the filesystem
\item \href{https://github.com/wearefractal/glob-stream}{\texttt{ glob-\/stream}} -\/ Streaming alternative
\item \href{https://github.com/sindresorhus/matcher}{\texttt{ matcher}} -\/ Simple wildcard matching
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11292}{}\doxysection{License}\label{md_sfcode_node_modules_gh_pages_node_modules_globby_readme_autotoc_md11292}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}} 