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

Function read

deps/npm/lib/utils/read-user-info.js:15–16  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

13
14// Pass options through so we can differentiate between regular and silent prompts
15const read = (options) =>
16 input.read(() => _read(options), { [META]: true, silent: options?.silent })
17
18function readOTP (msg = otpPrompt, otp, isRetry) {
19 if (isRetry && otp && /^[\d ]+$|^[A-Fa-f0-9]{64,64}$/.test(otp)) {

Callers 4

readOTPFunction · 0.70
readPasswordFunction · 0.70
readUsernameFunction · 0.70
readEmailFunction · 0.70

Calls 2

_readFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected