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.0.1-security

38

package.json
{
"name": "cli-qa",
"version": "0.0.0",
"description": "Command-line Questions & Answers",
"version": "0.0.1-security",
"description": "",
"main": "index.js",
"scripts": {
"test": "node test"
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"io",
"cli",
"prompt",
"input",
"question",
"answer",
"qa",
"q&a"
],
"repository": {
"url": "git@github.com:azer/cli-qa.git",
"type": "git"
"type": "git",
"url": "git+https://github.com/npm/security-holder.git"
},
"author": "azer",
"license": "BSD",
"dependencies": {
"left-pad": "0.0.4",
"read-cli-input": "1.0.1",
"serial-loop": "0.0.1",
"style-format": "0.0.0",
"variable-name": "0.0.2"
}
}
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/security-holder/issues"
},
"homepage": "https://github.com/npm/security-holder#readme"
}

@@ -1,47 +0,9 @@

## cli-qa
# Security holding package
Command-line Questions & Answers. Supports color formatting, lists, yes/no confirmations.
This package name is not currently in use, but was formerly occupied
by a popular package. To avoid malicious use, npm is hanging on to
the package name, but loosely, and we'll probably give it to you if
you want it.
![](https://cldup.com/yaS8YF7scZ.png)
## Install
```bash
$ npm install cli-qa
```
## Usage
```js
var QA = require('cli-qa')
var questions = [
{ key: "name", title: "Hey! What's your name?" },
{ key: "foods", title: "What are your 3 most favorite foods?", list: 3 },
{ title: "Favorite books?", description: "Type as much as you want!", list: true }, // unlimited list input
"Thoughts?",
{ title: "That's all?", description: "Yes/No", bool: true }
];
QA(questions, function (answers) {
console.log(answers)
// => {
// "name": "Azer",
// "foods": ["falafel", "babi guling", "kebab"],
// "favoriteBooks": ["snow", "white castle"],
// "thoughts": "let's go somewhere!",
// "thatsAll": true
// }
})
```
### Styling
Title and description fields can be styled with [style-format](http://github.com/azer/style-format) interface. Here is an example;
```js
QA([{ title: "{green}Yes{reset}/{red}No{reset}?", bool: true }], function (answers) {
answers[yesNo]
// => true or false
})
```
You may adopt this package by contacting support@npmjs.com and
requesting the name.
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