\begin{quote}
\href{http://en.wikipedia.org/wiki/ANSI_escape_code\#Colors_and_Styles}{\texttt{ ANSI escape codes}} for styling strings in the terminal \end{quote}
You probably want the higher-\/level \href{https://github.com/chalk/chalk}{\texttt{ chalk}} module for styling your strings.

\hypertarget{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22649}{}\doxysection{Install}\label{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22649}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var ansi = require('ansi-\/styles');}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(ansi.green.open + 'Hello world!' + ansi.green.close); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22651}{}\doxysection{API}\label{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22651}
Each style has an {\ttfamily open} and {\ttfamily close} property.\hypertarget{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22652}{}\doxysection{Styles}\label{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22652}
\hypertarget{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22653}{}\doxysubsection{Modifiers}\label{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22653}

\begin{DoxyItemize}
\item {\ttfamily reset}
\item {\ttfamily bold}
\item {\ttfamily dim}
\item {\ttfamily italic} $\ast$(not widely supported)$\ast$
\item {\ttfamily underline}
\item {\ttfamily inverse}
\item {\ttfamily hidden}
\item {\ttfamily strikethrough} $\ast$(not widely supported)$\ast$
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22654}{}\doxysubsection{Colors}\label{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22654}

\begin{DoxyItemize}
\item {\ttfamily black}
\item {\ttfamily red}
\item {\ttfamily green}
\item {\ttfamily yellow}
\item {\ttfamily blue}
\item {\ttfamily magenta}
\item {\ttfamily cyan}
\item {\ttfamily white}
\item {\ttfamily gray}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22655}{}\doxysubsection{Background colors}\label{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22655}

\begin{DoxyItemize}
\item {\ttfamily bg\+Black}
\item {\ttfamily bg\+Red}
\item {\ttfamily bg\+Green}
\item {\ttfamily bg\+Yellow}
\item {\ttfamily bg\+Blue}
\item {\ttfamily bg\+Magenta}
\item {\ttfamily bg\+Cyan}
\item {\ttfamily bg\+White}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22656}{}\doxysection{Advanced usage}\label{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22656}
By default you get a map of styles, but the styles are also available as groups. They are non-\/enumerable so they don\textquotesingle{}t show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-\/level module.


\begin{DoxyItemize}
\item {\ttfamily ansi.\+modifiers}
\item {\ttfamily ansi.\+colors}
\item {\ttfamily ansi.\+bg\+Colors}
\end{DoxyItemize}

\doxysubparagraph*{Example}


\begin{DoxyCode}{0}
\DoxyCodeLine{console.log(ansi.colors.green.open); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22657}{}\doxysection{License}\label{md_sfcode_node_modules_protractor_node_modules_ansi_styles_readme_autotoc_md22657}
MIT © \href{http://sindresorhus.com}{\texttt{ Sindre Sorhus}} 