🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

prompt-gh-clone

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompt-gh-clone

Prompt for the owner/name of a GitHub repository to clone.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

prompt-gh-clone NPM version NPM monthly downloads NPM total downloads Linux Build Status Windows Build Status

Prompt for the owner/name of a GitHub repository to clone.

prompt-gh-clone example

Usage

var clone = require('prompt-gh-clone');

clone(function(err) {
  if (err) console.log(err);
});

Options

options.dest

Set the default directory to use when the user is prompted for the destination directory.

Type: string

Default: The name of the repository

options.message

Change the prompt message.

Type: string

Default: GitHub repo to clone? (owner/name)

Example

clone({message: 'Repo to clone?'}, function(err) {
  if (err) console.log(err);
});

About

  • prompt-confirm: Confirm (yes/no) prompt. Can be used standalone or with a prompt system like [Enquirer]. | homepage
  • prompt-radio: Radio prompt. Can be used as a standalone prompt, or as a plugin for [Enquirer]. | homepage

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.

This file was generated by verb-generate-readme, v0.6.0, on September 10, 2017.

Keywords

ask

FAQs

Package last updated on 10 Sep 2017

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