Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ask-readline

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ask-readline - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

example.js

@@ -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 })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc