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.2 to 1.1.0

11

index.js

@@ -15,2 +15,13 @@ const readline = require('readline')

if (opts.oninput) {
const value = stringToWrite.trim()
if (opts.oninput(value)) {
answer = value
rl.close()
}
return
}
const end = stringToWrite === '\r\n' || stringToWrite === '\n'

@@ -17,0 +28,0 @@

2

package.json
{
"name": "ask-readline",
"version": "1.0.2",
"version": "1.1.0",
"description": "Ask a question for CLI using readline, supports muted input",

@@ -5,0 +5,0 @@ "main": "index.js",

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