\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}
\hypertarget{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32005}{}\doxysection{Install}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32005}
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_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32006}{}\doxysection{Usage}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32006}

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

\end{DoxyCode}


{\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{isGlob('abc/?.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{isGlob('abc/\(\backslash\)\(\backslash\)?.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();}
\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_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32007}{}\doxysection{About}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32007}
\hypertarget{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32008}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32008}

\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}}\+: base is the foundation for creating modular, unit testable and highly pluggable node.\+js applications, starting… \href{https://github.com/node-base/base}{\texttt{ more}} $\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_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32009}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32009}
Pull requests and stars are always welcome. For bugs and feature requests, \href{../../issues/new}{\texttt{ please create an issue}}.\hypertarget{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32010}{}\doxysubsection{Contributors}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32010}
\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}}~\newline
    }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Commits}}   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Contributor}}~\newline
    }\\\cline{1-2}
\endhead
40   &\href{https://github.com/jonschlinkert}{\texttt{ jonschlinkert}}    \\\cline{1-2}
1   &\href{https://github.com/tuvistavie}{\texttt{ tuvistavie}}   \\\cline{1-2}
\end{longtabu}
\hypertarget{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32011}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32011}
\+\_\+(This document was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}} (a \href{https://github.com/verbose/verb}{\texttt{ verb}} generator), please don\textquotesingle{}t edit the readme directly. Any changes to the readme must be made in .verb.md.)\+\_\+

To generate the readme and API documentation with \href{https://github.com/verbose/verb}{\texttt{ verb}}\+:


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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32012}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32012}
Install dev dependencies\+:


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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32013}{}\doxysubsection{Author}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32013}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{http://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32014}{}\doxysubsection{License}\label{md_sfcode_node_modules_watchpack_chokidar2_node_modules_glob_parent_node_modules_is_glob_README_autotoc_md32014}
Copyright © 2016, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}. Released under the \href{https://github.com/jonschlinkert/is-glob/blob/master/LICENSE}{\texttt{ MIT license}}.

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}}, v0.\+1.\+31, on October 12, 2016.} 