npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sap-ux/flp-config-inquirer

v0.4.87

Published

Prompts module that can prompt users for inputs required for FLP configuration

Downloads

2,435

Readme

Changelog Github repo

@sap-ux/flp-config-inquirer

Provides Inquirer-based prompting to allow input and validation of data required to generate an FLP (Fiori Launchpad) configuration.

Installation

Npm npm install --save @sap-ux/flp-config-inquirer

Yarn yarn add @sap-ux/flp-config-inquirer

Pnpm pnpm add @sap-ux/flp-config-inquirer

Explainer

The @sap-ux/flp-config-inquirer package provides a set of prompts for collecting user input required to generate FLP configuration. It leverages Inquirer.js for interactive command-line user interfaces.

You can retrieve the prompts using getPrompts and execute them with your own prompting mechanism. However, it is recommended to use the prompt function, which handles assigning default values to unanswered prompts based on provided prompt options. This ensures that hidden prompts or those not executed due to conditional logic are correctly populated.

Configurability of prompts is entirely controlled using the FLPConfigPromptOptions parameter.

  • Prompt Options: Use FLPConfigPromptOptions to customize prompts, such as setting default values, hiding prompts, or adding validation.
  • Defaults Handling: When prompts are hidden or not executed, default values or functions can be provided to ensure all required answers are available.
  • Conditional Prompts: Some prompts may be conditionally displayed based on previous answers. The prompt function handles these conditions and default assignments.

Inquirer usage example:

In the following example, the prompts are customized as follows:

  • Sets a default semanticObject of 'MySemanticObject'.
  • Sets a default action of 'display'.
  • Hides the title prompt and provides a default value of 'My Application Title'.
import { prompt, promptNames, type FLPConfigPromptOptions, type FLPConfigAnswers } from '@sap-ux/flp-config-inquirer';
import { type InquirerAdapter } from '@sap-ux/inquirer-common';
import inquirer from 'inquirer';

const promptOptions: FLPConfigPromptOptions = {
    // Provides a default semantic object
    [promptNames.semanticObject]: {
        default: 'MySemanticObject'
    },
    // Provides a default action
    [promptNames.action]: {
        default: 'display'
    },
    // Hide the title prompt and provide a default value
    [promptNames.title]: {
        hide: true,
        default: 'My Application Title'
    }
};

const inquirerAdapter: InquirerAdapter = {
    prompt: inquirer.prompt
};

// Assume there are no existing inbound keys
const inboundKeys: string[] = [];

// flpConfigAnswers will contain all values required to generate an FLP configuration
const flpConfigAnswers: FLPConfigAnswers = await prompt(
    inquirerAdapter,
    inboundKeys,
    promptOptions
);

// Use flpConfigAnswers as needed
console.log('FLP Configuration Answers:', flpConfigAnswers);

License

Read License.

Keywords

SAP Fiori Launchpad FLP Configuration Inquirer Prompting Generator