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

@jib/prompt

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jib/prompt

inquirer Plugin for @jib/cli

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Jib Prompt Plugin

Plugin for @jib/cli to support the extensible prompt framework, inquirer.

wercker status

About

This project was generated using the jib command line generator.

Usage

npm install --save @jib/prompt

Using within @jib/cli commands:

import { Command, Plugin } from '@jib/cli';
import { JibPrompt } from '@jib/prompt';

@Command({/* */})
class MyCustomCommand {
  // inject plugin
  @Plugin(JibPrompt)
  public helper: JibPrompt;

  public async run(options: any, ...args: string[]) {
    this.helper.prompt({
      // ...
    })
  }
}

Provide a custom adapter when prompts should be handled differently (like unit tests)

JibPrompt.adapter({
  prompt: (questions: any) => Promise.resolve({}),
});

FAQs

Package last updated on 04 Aug 2020

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

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