@mikeyt23/node-cli-utils
    Preparing search index...

    Function getConfirmation

    • A simple CLI prompt using the built-in NodeJS readline functionality to ask for confirmation.

      Parameters

      • question: string

        The question to ask

      Returns Promise<boolean>

      A Promise that resolves to true if the user answers 'y' or 'yes', false otherwise