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

cli-form

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-form - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1-security

32

package.json
{
"name": "cli-form",
"version": "0.0.0",
"description": "Build user-friendly command-line forms",
"version": "0.0.1-security",
"description": "",
"main": "index.js",
"scripts": {
"test": "node test"
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"cli",
"command-line",
"form"
],
"repository": {
"url": "git@github.com:azer/cli-form.git",
"type": "git"
"type": "git",
"url": "git+https://github.com/npm/security-holder.git"
},
"author": "azer",
"license": "BSD",
"dependencies": {
"cli-qa": "^0.3.0",
"config-doc": "^0.1.0",
"format-text": "0.0.3",
"new-struct": "^0.1.1"
}
}
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/security-holder/issues"
},
"homepage": "https://github.com/npm/security-holder#readme"
}

@@ -1,38 +0,9 @@

## cli-form
# Security holding package
Build user-friendly command-line forms easily.
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/U2M04exBeI.png)
## Install
```bash
$ npm install cli-form
```
## Usage
```js
var NewForm = require('cli-form')
var form = NewForm('~/.projects', [
{ key: "github", title: "What's your Github handle?", default: process.env.USER, forOnce: true },
{ key: "workspace", title: "Where do you keep your code?", default: process.cwd(), forOnce: true },
{ key: "name", title: "What's your new project name?", validate: { len: [1] } },
{ title: "Starter", desc: "user/repo (Github) or a full Git URL to clone.", default: "bud/react-starter" }
])
form.prompt(function (answers) {
answers.github
// => azer
answers.starter
// => bud/go-starter
})
```
## Reference
cli-form is a wrapper for [cli-qa](http://github.com/azer/cli-qa) module, formatted by default with a description option. [Reference](https://github.com/azer/cli-qa#reference)
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