ask-readline
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,8 +6,8 @@ const ask = require('./index.js') | ||
async function main () { | ||
const username = await ask('Input your username (clear): ', { clear: true }) | ||
const password = await ask('Input your password (clear and muted): ', { clear: true, muted: true }) | ||
const twoFactorAuth = await ask('Input your 2fa (keep but muted): ', { clear: false, muted: true }) | ||
const alias = await ask('Input your alias (default): ') | ||
const username = await ask('Input username (clear): ', { clear: true }) | ||
const password = await ask('Input password (clear and muted): ', { clear: true, muted: true }) | ||
const twoFactorAuth = await ask('Input 2fa (keep but muted): ', { clear: false, muted: true }) | ||
const alias = await ask('Input alias (default): ') | ||
console.log({ username, password, twoFactorAuth, alias }) | ||
} |
{ | ||
"name": "ask-readline", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Ask a question for CLI using readline, supports muted input", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,6 +16,6 @@ # ask-readline | ||
async function main () { | ||
const username = await ask('Input your username (clear): ', { clear: true }) | ||
const password = await ask('Input your password (clear and muted): ', { clear: true, muted: true }) | ||
const twoFactorAuth = await ask('Input your 2fa (keep but muted): ', { clear: false, muted: true }) | ||
const alias = await ask('Input your alias (default): ') | ||
const username = await ask('Input username (clear): ', { clear: true }) | ||
const password = await ask('Input password (clear and muted): ', { clear: true, muted: true }) | ||
const twoFactorAuth = await ask('Input 2fa (keep but muted): ', { clear: false, muted: true }) | ||
const alias = await ask('Input alias (default): ') | ||
@@ -22,0 +22,0 @@ console.log({ username, password, twoFactorAuth, alias }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4841