\begin{quote}
Check if a string has \href{http://en.wikipedia.org/wiki/ANSI_escape_code}{\texttt{ ANSI escape codes}} \end{quote}
\hypertarget{md_sfcode_node_modules_has_ansi_readme_autotoc_md11427}{}\doxysection{Install}\label{md_sfcode_node_modules_has_ansi_readme_autotoc_md11427}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var hasAnsi = require('has-\/ansi');}
\DoxyCodeLine{}
\DoxyCodeLine{hasAnsi('\(\backslash\)u001b[4mcake\(\backslash\)u001b[0m');}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{hasAnsi('cake');}
\DoxyCodeLine{//=> false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_has_ansi_readme_autotoc_md11429}{}\doxysection{Related}\label{md_sfcode_node_modules_has_ansi_readme_autotoc_md11429}

\begin{DoxyItemize}
\item \href{https://github.com/sindresorhus/has-ansi-cli}{\texttt{ has-\/ansi-\/cli}} -\/ CLI for this module
\item \href{https://github.com/sindresorhus/strip-ansi}{\texttt{ strip-\/ansi}} -\/ Strip ANSI escape codes
\item \href{https://github.com/sindresorhus/ansi-regex}{\texttt{ ansi-\/regex}} -\/ Regular expression for matching ANSI escape codes
\item \href{https://github.com/sindresorhus/chalk}{\texttt{ chalk}} -\/ Terminal string styling done right
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_has_ansi_readme_autotoc_md11430}{}\doxysection{License}\label{md_sfcode_node_modules_has_ansi_readme_autotoc_md11430}
MIT © \href{http://sindresorhus.com}{\texttt{ Sindre Sorhus}} 