\begin{quote}
Toggle the CLI cursor \end{quote}
The cursor is \href{https://github.com/sindresorhus/restore-cursor}{\texttt{ gracefully restored}} if the process exits.\hypertarget{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5181}{}\doxysection{Install}\label{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5181}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install cli-\/cursor }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const cliCursor = require('cli-\/cursor');}
\DoxyCodeLine{}
\DoxyCodeLine{cliCursor.hide();}
\DoxyCodeLine{}
\DoxyCodeLine{const unicornsAreAwesome = true;}
\DoxyCodeLine{cliCursor.toggle(unicornsAreAwesome); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5183}{}\doxysection{API}\label{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5183}
\hypertarget{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5184}{}\doxysubsection{.\+show(stream?)}\label{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5184}
\hypertarget{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5185}{}\doxysubsection{.\+hide(stream?)}\label{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5185}
\hypertarget{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5186}{}\doxysubsection{.\+toggle(force?, stream?)}\label{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5186}
\hypertarget{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5187}{}\doxysubsubsection{force}\label{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5187}
Useful for showing or hiding the cursor based on a boolean.\hypertarget{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5188}{}\doxysubsubsection{stream}\label{md_sfcode_node_modules_cli_cursor_readme_autotoc_md5188}
Type\+: {\ttfamily stream.\+Writable}~\newline
 Default\+: {\ttfamily process.\+stderr}

\DoxyHorRuler{0}


 {\bfseries{ \href{https://tidelift.com/subscription/pkg/npm-cli-cursor?utm_source=npm-cli-cursor&utm_medium=referral&utm_campaign=readme}{\texttt{ Get professional support for this package with a Tidelift subscription}} }} ~\newline
 \textsubscript{ Tidelift helps make open source sustainable for maintainers while giving companies~\newline
assurances about security, maintenance, and licensing for their dependencies. }  