Get a password from the terminal. Sounds simple? Sounds like the {\ttfamily readline} module should be able to do it? NOPE.\hypertarget{md_sfcode_node_modules_getpass_README_autotoc_md11133}{}\doxysection{Install and use it}\label{md_sfcode_node_modules_getpass_README_autotoc_md11133}

\begin{DoxyCode}{0}
\DoxyCodeLine{npm install -\/-\/save getpass }

\end{DoxyCode}



\begin{DoxyCode}{0}
\DoxyCodeLine{const mod\_getpass = require('getpass'); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_getpass_README_autotoc_md11134}{}\doxysection{API}\label{md_sfcode_node_modules_getpass_README_autotoc_md11134}
\hypertarget{md_sfcode_node_modules_getpass_README_autotoc_md11135}{}\doxysubsection{$<$tt$>$mod\+\_\+getpass.\+get\+Pass(\mbox{[}options, \mbox{]}callback)$<$/tt$>$}\label{md_sfcode_node_modules_getpass_README_autotoc_md11135}
Gets a password from the terminal. If available, this uses {\ttfamily /dev/tty} to avoid interfering with any data being piped in or out of stdio.

This function prints a prompt (by default {\ttfamily Password\+:}) and then accepts input without echoing.

Parameters\+:


\begin{DoxyItemize}
\item {\ttfamily options}, an Object, with properties\+:
\begin{DoxyItemize}
\item {\ttfamily prompt}, an optional String
\end{DoxyItemize}
\item {\ttfamily callback}, a {\ttfamily Func(error, password)}, with arguments\+:
\begin{DoxyItemize}
\item {\ttfamily error}, either {\ttfamily null} (no error) or an {\ttfamily Error} instance
\item {\ttfamily password}, a String 
\end{DoxyItemize}
\end{DoxyItemize}