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

cli-interact

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-interact - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

22

index.js

@@ -31,21 +31,4 @@ //==============================

function getInteger (promptText) {
var answer;
var value;
promptText += ': ';
while (true) {
answer = readlineSync.question(promptText);
if (answer === "\u0003") {
// Ctl-C
process.exit();
} else {
value = parseInt(answer, 10);
if (value.toString() === answer) {
break;
}
}
}
return value;
function getInteger (promptText) { // convenience method
return getNumber(promptText, true);
}

@@ -120,2 +103,3 @@

getChar : getChar
, getInteger : getInteger
, getIPversion : getIPversion

@@ -122,0 +106,0 @@ , getNumber : getNumber

2

package.json
{
"name": "cli-interact",
"version": "0.1.2",
"version": "0.1.3",
"title": "cli interact",

@@ -5,0 +5,0 @@ "description": "Simple helper tools for interacting synchronously with user at command line",

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