Socket
Socket
Sign inDemoInstall

@form8ion/overridable-prompts

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@form8ion/overridable-prompts

Inquirer prompts that can be overriden with provided answers


Version published
Weekly downloads
4.5K
increased by0.27%
Maintainers
2
Weekly downloads
 
Created
Source

overridable-prompts

Inquirer prompts that can be overriden with provided answers

Node CI Workflow Status

Table of Contents

Usage

npm Try @form8ion/overridable-prompts on RunKit MIT license

Installation

$ npm install @form8ion/overridable-prompts --save-prod

Example

Import
import {prompt} from '@form8ion/overridable-prompts';
Execute
  const answers = await prompt(
    [
      {
        name: 'Question #1',
        message: 'What should we ask first?'
      },
      {
        name: 'Question #2',
        message: 'What should we ask second?',
        when: answerList => 'Provided answer for `Question #1`' === answerList['Question #1']
      }
    ],
    {
      'Question #1': 'Provided answer for `Question #1`',
      'Question #2': 'Provided answer for `Question #2`'
    }
  );

Contributing

Conventional Commits Commitizen friendly semantic-release PRs Welcome Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test

FAQs

Package last updated on 27 Jun 2022

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