\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_del_node_modules_globby_readme_autotoc_md8017}{}\doxysection{Install}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8017}

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

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

\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_del_node_modules_globby_readme_autotoc_md8019}{}\doxysection{API}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8019}
\hypertarget{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8020}{}\doxysubsection{globby(patterns, \mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8020}
Returns a Promise for an array of matching paths.\hypertarget{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8021}{}\doxysubsection{globby.\+sync(patterns, \mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8021}
Returns an array of matching paths.\hypertarget{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8022}{}\doxysubsection{globby.\+generate\+Glob\+Tasks(patterns, \mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8022}
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_del_node_modules_globby_readme_autotoc_md8023}{}\doxysubsection{globby.\+has\+Magic(patterns, \mbox{[}options\mbox{]})}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8023}
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_del_node_modules_globby_readme_autotoc_md8024}{}\doxysubsubsection{patterns}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8024}
Type\+: {\ttfamily string} {\ttfamily Array}

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

See the {\ttfamily node-\/glob} \href{https://github.com/isaacs/node-glob\#options}{\texttt{ options}}.\hypertarget{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8026}{}\doxysection{Globbing patterns}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8026}
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_del_node_modules_globby_readme_autotoc_md8027}{}\doxysection{Related}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8027}

\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_del_node_modules_globby_readme_autotoc_md8028}{}\doxysection{License}\label{md_sfcode_node_modules_del_node_modules_globby_readme_autotoc_md8028}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}} 