{\bfseries{Contributing}}

\begin{quote}
Returns {\ttfamily true} if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-\/glob when necessary, resulting in much faster code execution and initialization time, and a better user experience. \end{quote}
Please consider following this project\textquotesingle{}s author, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}, and consider starring the project to show your \+:heart\+: and support.\hypertarget{md_sfcode_node_modules_is_glob_README_autotoc_md13121}{}\doxysection{Install}\label{md_sfcode_node_modules_is_glob_README_autotoc_md13121}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


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

\end{DoxyCode}


You might also be interested in \href{https://github.com/jonschlinkert/is-valid-glob}{\texttt{ is-\/valid-\/glob}} and \href{https://github.com/jonschlinkert/has-glob}{\texttt{ has-\/glob}}.\hypertarget{md_sfcode_node_modules_is_glob_README_autotoc_md13122}{}\doxysection{Usage}\label{md_sfcode_node_modules_is_glob_README_autotoc_md13122}

\begin{DoxyCode}{0}
\DoxyCodeLine{var isGlob = require('is-\/glob'); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_glob_README_autotoc_md13123}{}\doxysubsection{Default behavior}\label{md_sfcode_node_modules_is_glob_README_autotoc_md13123}
{\bfseries{True}}

Patterns that have glob characters or regex patterns will return {\ttfamily true}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{isGlob('!foo.js');}
\DoxyCodeLine{isGlob('*.js');}
\DoxyCodeLine{isGlob('**/abc.js');}
\DoxyCodeLine{isGlob('abc/*.js');}
\DoxyCodeLine{isGlob('abc/(aaa|bbb).js');}
\DoxyCodeLine{isGlob('abc/[a-\/z].js');}
\DoxyCodeLine{isGlob('abc/\{a,b\}.js');}
\DoxyCodeLine{//=> true }

\end{DoxyCode}


Extglobs


\begin{DoxyCode}{0}
\DoxyCodeLine{isGlob('abc/@(a).js');}
\DoxyCodeLine{isGlob('abc/!(a).js');}
\DoxyCodeLine{isGlob('abc/+(a).js');}
\DoxyCodeLine{isGlob('abc/*(a).js');}
\DoxyCodeLine{isGlob('abc/?(a).js');}
\DoxyCodeLine{//=> true }

\end{DoxyCode}


{\bfseries{False}}

Escaped globs or extglobs return {\ttfamily false}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)@(a).js');}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)!(a).js');}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)+(a).js');}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)*(a).js');}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)?(a).js');}
\DoxyCodeLine{isGlob('\(\backslash\)\(\backslash\)!foo.js');}
\DoxyCodeLine{isGlob('\(\backslash\)\(\backslash\)*.js');}
\DoxyCodeLine{isGlob('\(\backslash\)\(\backslash\)*\(\backslash\)\(\backslash\)*/abc.js');}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)*.js');}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)(aaa|bbb).js');}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)[a-\/z].js');}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)\{a,b\}.js');}
\DoxyCodeLine{//=> false }

\end{DoxyCode}


Patterns that do not have glob patterns return {\ttfamily false}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{isGlob('abc.js');}
\DoxyCodeLine{isGlob('abc/def/ghi.js');}
\DoxyCodeLine{isGlob('foo.js');}
\DoxyCodeLine{isGlob('abc/@.js');}
\DoxyCodeLine{isGlob('abc/+.js');}
\DoxyCodeLine{isGlob('abc/?.js');}
\DoxyCodeLine{isGlob();}
\DoxyCodeLine{isGlob(null);}
\DoxyCodeLine{//=> false }

\end{DoxyCode}


Arrays are also {\ttfamily false} (If you want to check if an array has a glob pattern, use \href{https://github.com/jonschlinkert/has-glob}{\texttt{ has-\/glob}})\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{isGlob(['**/*.js']);}
\DoxyCodeLine{isGlob(['foo.js']);}
\DoxyCodeLine{//=> false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_glob_README_autotoc_md13124}{}\doxysubsection{Option strict}\label{md_sfcode_node_modules_is_glob_README_autotoc_md13124}
When {\ttfamily options.\+strict === false} the behavior is less strict in determining if a pattern is a glob. Meaning that some patterns that would return {\ttfamily false} may return {\ttfamily true}. This is done so that matching libraries like \href{https://github.com/micromatch/micromatch}{\texttt{ micromatch}} have a chance at determining if the pattern is a glob or not.

{\bfseries{True}}

Patterns that have glob characters or regex patterns will return {\ttfamily true}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{isGlob('!foo.js', \{strict: false\});}
\DoxyCodeLine{isGlob('*.js', \{strict: false\});}
\DoxyCodeLine{isGlob('**/abc.js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/*.js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/(aaa|bbb).js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/[a-\/z].js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/\{a,b\}.js', \{strict: false\});}
\DoxyCodeLine{//=> true }

\end{DoxyCode}


Extglobs


\begin{DoxyCode}{0}
\DoxyCodeLine{isGlob('abc/@(a).js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/!(a).js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/+(a).js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/*(a).js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/?(a).js', \{strict: false\});}
\DoxyCodeLine{//=> true }

\end{DoxyCode}


{\bfseries{False}}

Escaped globs or extglobs return {\ttfamily false}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{isGlob('\(\backslash\)\(\backslash\)!foo.js', \{strict: false\});}
\DoxyCodeLine{isGlob('\(\backslash\)\(\backslash\)*.js', \{strict: false\});}
\DoxyCodeLine{isGlob('\(\backslash\)\(\backslash\)*\(\backslash\)\(\backslash\)*/abc.js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)*.js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)(aaa|bbb).js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)[a-\/z].js', \{strict: false\});}
\DoxyCodeLine{isGlob('abc/\(\backslash\)\(\backslash\)\{a,b\}.js', \{strict: false\});}
\DoxyCodeLine{//=> false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_glob_README_autotoc_md13125}{}\doxysection{About}\label{md_sfcode_node_modules_is_glob_README_autotoc_md13125}
$<$details$>$

Pull requests and stars are always welcome. For bugs and feature requests, \href{../../issues/new}{\texttt{ please create an issue}}.

$<$/details$>$

$<$details$>$

{\bfseries{Running Tests}} 

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install \&\& npm test }

\end{DoxyCode}


$<$/details$>$

$<$details$>$

{\bfseries{Building docs}} 

\+\_\+(This project\textquotesingle{}s readme.\+md is generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb}}, please don\textquotesingle{}t edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)\+\_\+

To generate the readme, run the following command\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/g verbose/verb\#dev verb-\/generate-\/readme \&\& verb }

\end{DoxyCode}


$<$/details$>$\hypertarget{md_sfcode_node_modules_is_glob_README_autotoc_md13126}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_is_glob_README_autotoc_md13126}
You might also be interested in these projects\+:


\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/assemble}{\texttt{ assemble}}\+: Get the rocks out of your socks! Assemble makes you fast at creating web projects… \href{https://github.com/assemble/assemble}{\texttt{ more}} $\vert$ \href{https://github.com/assemble/assemble}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/base}{\texttt{ base}}\+: Framework for rapidly creating high quality, server-\/side node.\+js applications, using plugins like building blocks $\vert$ \href{https://github.com/node-base/base}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/update}{\texttt{ update}}\+: Be scalable! Update is a new, open source developer framework and CLI for automating updates… \href{https://github.com/update/update}{\texttt{ more}} $\vert$ \href{https://github.com/update/update}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/verb}{\texttt{ verb}}\+: Documentation generator for Git\+Hub projects. Verb is extremely powerful, easy to use, and is used… \href{https://github.com/verbose/verb}{\texttt{ more}} $\vert$ \href{https://github.com/verbose/verb}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_is_glob_README_autotoc_md13127}{}\doxysubsection{Contributors}\label{md_sfcode_node_modules_is_glob_README_autotoc_md13127}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Commits}}   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Contributor}}    }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Commits}}   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Contributor}}    }\\\cline{1-2}
\endhead
47   &\href{https://github.com/jonschlinkert}{\texttt{ jonschlinkert}}    \\\cline{1-2}
5   &\href{https://github.com/doowb}{\texttt{ doowb}}    \\\cline{1-2}
1   &\href{https://github.com/phated}{\texttt{ phated}}    \\\cline{1-2}
1   &\href{https://github.com/danhper}{\texttt{ danhper}}    \\\cline{1-2}
1   &\href{https://github.com/paulmillr}{\texttt{ paulmillr}}   \\\cline{1-2}
\end{longtabu}
\hypertarget{md_sfcode_node_modules_is_glob_README_autotoc_md13128}{}\doxysubsection{Author}\label{md_sfcode_node_modules_is_glob_README_autotoc_md13128}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ Git\+Hub Profile}}
\item \href{https://twitter.com/jonschlinkert}{\texttt{ Twitter Profile}}
\item \href{https://linkedin.com/in/jonschlinkert}{\texttt{ Linked\+In Profile}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_is_glob_README_autotoc_md13129}{}\doxysubsection{License}\label{md_sfcode_node_modules_is_glob_README_autotoc_md13129}
Copyright © 2019, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}. Released under the \mbox{[}MIT License\mbox{]}(LICENSE).

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}}, v0.\+8.\+0, on March 27, 2019.} 