An elegant lib that converts the chalked (ANSI) text to HTML.\hypertarget{md_sfcode_node_modules_ansi_html_README_autotoc_md3041}{}\doxysection{Coverage}\label{md_sfcode_node_modules_ansi_html_README_autotoc_md3041}

\begin{DoxyItemize}
\item All styles of \href{https://github.com/sindresorhus/chalk}{\texttt{ chalk}} (100\%) and \href{https://github.com/Marak/colors.js}{\texttt{ colors}}.
\item There are over {\bfseries{150}} randomized test cases under {\ttfamily test}.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_ansi_html_README_autotoc_md3042}{}\doxysection{Installation}\label{md_sfcode_node_modules_ansi_html_README_autotoc_md3042}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var ansiHTML = require('ansi-\/html');}
\DoxyCodeLine{var str = ansiHTML('[ANSI\_TEXT]'); }

\end{DoxyCode}


e.\+g.\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{var chalk = require('chalk');}
\DoxyCodeLine{}
\DoxyCodeLine{var str = chalk.bold.red('foo') + ' bar';}
\DoxyCodeLine{console.log('[ANSI]', str)}
\DoxyCodeLine{console.log('[HTML]', ansiHTML(str)); }

\end{DoxyCode}


See complete examples under {\ttfamily test} / {\ttfamily examples} directory.\hypertarget{md_sfcode_node_modules_ansi_html_README_autotoc_md3044}{}\doxysection{Set Colors}\label{md_sfcode_node_modules_ansi_html_README_autotoc_md3044}

\begin{DoxyCode}{0}
\DoxyCodeLine{ansiHTML.setColors(\{}
\DoxyCodeLine{  reset: ['555', '666'], // FOREGROUND-\/COLOR or [FOREGROUND-\/COLOR] or [, BACKGROUND-\/COLOR] or [FOREGROUND-\/COLOR, BACKGROUND-\/COLOR]}
\DoxyCodeLine{  black: 'aaa', // String}
\DoxyCodeLine{  red: 'bbb',}
\DoxyCodeLine{  green: 'ccc',}
\DoxyCodeLine{  yellow: 'ddd',}
\DoxyCodeLine{  blue: 'eee',}
\DoxyCodeLine{  magenta: 'fff',}
\DoxyCodeLine{  cyan: '999',}
\DoxyCodeLine{  lightgrey: '888',}
\DoxyCodeLine{  darkgrey: '777'}
\DoxyCodeLine{\}); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_ansi_html_README_autotoc_md3045}{}\doxysection{Reset}\label{md_sfcode_node_modules_ansi_html_README_autotoc_md3045}

\begin{DoxyCode}{0}
\DoxyCodeLine{ansiHTML.reset(); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_ansi_html_README_autotoc_md3046}{}\doxysection{Exposed Tags}\label{md_sfcode_node_modules_ansi_html_README_autotoc_md3046}

\begin{DoxyCode}{0}
\DoxyCodeLine{var openTags = ansiHTML.tags.open;}
\DoxyCodeLine{var closeTags = ansiHTML.tags.close; }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_ansi_html_README_autotoc_md3047}{}\doxysection{Test}\label{md_sfcode_node_modules_ansi_html_README_autotoc_md3047}

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

\end{DoxyCode}
 