Socket
Socket
Sign inDemoInstall

cowmand

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cowmand - npm Package Compare versions

Comparing version 0.7.0-beta.3 to 0.7.0-beta.4

14

dist/Terminal/ask.js

@@ -15,10 +15,10 @@ "use strict";

const stream_1 = require("stream");
class Ask {
const AskProto = {
execute(questionInput, optionsAsk) {
return __awaiter(this, void 0, void 0, function* () {
const question = this.trimAndAddSpace(questionInput);
const question = AskProto.trimAndAddSpace(questionInput);
return new Promise(resolve => {
const questionInterface = (0, readline_1.createInterface)({
input: process.stdin,
output: this.output(question, optionsAsk === null || optionsAsk === void 0 ? void 0 : optionsAsk.hidden),
output: AskProto.output(question, optionsAsk === null || optionsAsk === void 0 ? void 0 : optionsAsk.hidden),
terminal: true

@@ -32,3 +32,3 @@ });

});
}
},
output(question, muted = false) {

@@ -52,7 +52,7 @@ let printAsk = false;

});
}
},
trimAndAddSpace(value) {
return `${value.trim()} `;
}
}
exports.ask = new Ask().execute;
};
exports.ask = AskProto.execute;
{
"name": "cowmand",
"version": "0.7.0-beta.3",
"version": "0.7.0-beta.4",
"description": "Fast helper to create a cli",

@@ -5,0 +5,0 @@ "tags": [

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