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

cli-qa

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-qa - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

3

example.js

@@ -8,3 +8,4 @@ var QA = require('./');

"{bold}Additional Thoughts{reset}",
{ key: 'thatsAll', title: "{yellow}{bold}That's all {grey}(yes/no) {yellow}?{reset}", bool: true }
{ title: "{yellow}Favorite {green}Fruits{reset}:", commaList: true },
{ key: 'thatsAll', title: "{yellow}{bold}That's all {grey}(yes/no) {yellow}?{reset}", bool: true },
];

@@ -11,0 +12,0 @@

@@ -51,2 +51,6 @@ var read = require("read-cli-input");

if (question.commaList) {
answer = commaList(answer);
}
callback(answer);

@@ -76,2 +80,14 @@ });

function commaList (input) {
return input
.trim()
.split(/\s*,\s*/)
.map(function (col) {
return col.trim();
})
.filter(function (col) {
return col && col.length;
});
}
function normalizeQuestion (question) {

@@ -78,0 +94,0 @@ if (typeof question == "string") {

{
"name": "cli-qa",
"version": "0.0.0",
"version": "0.1.0",
"description": "Command-line Questions & Answers",

@@ -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