ask-readline
Advanced tools
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 @@ |
{ | ||
"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", |
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
5027
59