MCPcopy Create free account
hub / github.com/nodejs/node / readPassword

Function readPassword

deps/npm/lib/utils/read-user-info.js:27–34  ·  view source on GitHub ↗
(msg = passwordPrompt, password, isRetry)

Source from the content-addressed store, hash-verified

25}
26
27function readPassword (msg = passwordPrompt, password, isRetry) {
28 if (isRetry && password) {
29 return password
30 }
31
32 return read({ prompt: msg, silent: true, default: password || '' })
33 .then((rPassword) => readPassword(msg, rPassword, true))
34}
35
36function readUsername (msg = usernamePrompt, username, isRetry) {
37 if (isRetry && username) {

Callers

nothing calls this directly

Calls 2

readFunction · 0.70
thenMethod · 0.45

Tested by

no test coverage detected