Comparing version 0.0.0 to 0.0.1-security
{ | ||
"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. |
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
Known malware
Supply chain riskThis package is malware. We have asked the package registry to remove it.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
0
799
2
0
10
1
1
- Removedleft-pad@0.0.4
- Removedread-cli-input@1.0.1
- Removedserial-loop@0.0.1
- Removedstyle-format@0.0.0
- Removedvariable-name@0.0.2
- Removedanglicize@0.0.5(transitive)
- Removedansi-codes@2.0.0(transitive)
- Removedformat-text@2.0.0(transitive)
- Removedkeypress@0.2.1(transitive)
- Removedleft-pad@0.0.4(transitive)
- Removedon-key-press@0.0.0(transitive)
- Removedread-cli-input@1.0.1(transitive)
- Removedserial-loop@0.0.1(transitive)
- Removedstyle-format@0.0.0(transitive)
- Removedvariable-name@0.0.2(transitive)