New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

read-cli-input

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-cli-input - npm Package Compare versions

Comparing version

to
1.0.1

8

index.js

@@ -25,2 +25,6 @@ var onKeyPress = require("on-key-press");

if (/(^|\n)\n\n$/.test(input)) {
return done();
}
if (key && key.name == 'enter') {

@@ -33,6 +37,2 @@ if (--lines <= 0) {

}
if (/(^|\n)\n\n$/.test(input)) {
done();
}
}

@@ -39,0 +39,0 @@ }

{
"name": "read-cli-input",
"version": "1.0.0",
"version": "1.0.1",
"description": "Read user input from CLI for specified amount of lines.",

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