New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

command-prompt

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

command-prompt

command-prompt

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
4
-20%
Maintainers
1
Weekly downloads
 
Created
Source

command-prompt

Install

npm install --save command-prompt

yarn add command-prompt

Usage

import commandPrompt from 'command-prompt';

const options = {
	name: 'choose your project',
	choices: [
		{
			name: 'project1',
			choices: [
				{
					name: 'clone project',
					method() {
						console.log('git clone.....');
					}
				},
				{
					name: 'fetch project',
					method(again) {
						console.log('git fetch.....');
						again();
					}
				}
			]
		},
		{
			name: 'project2',
			choices: [
				{
					name: 'clone project',
					method() {
						console.log('git clone.....');
					}
				},
				{
					name: 'fetch project',
					method() {
						console.log('git fetch.....');
					}
				}
			]
		},
		{
			name: 'exit',
			method: () => process.exit()
		}
	]
}

commandPrompt(options);


图片1

图片1

图片1

Keywords

prompts

FAQs

Package last updated on 09 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts