0.0.2 • Published 3 years ago

@gweiermann/inquirer-builder v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Inquirier Builder

This package builds on top of Inquirer.js and provides you more flexibility and functionality. On top of that it's more intuitive to use.

Installation

npm install @gweiermann/inquirer-builder

Types are already in that package (for Typescript)

Examples

Check out the src/examples/ for examples

Example "Login or Register":

import { password, prompter, text, yesno } from "../package";

const personalInfo = {
    "displayName": text("Set your display name: "),
    "email": text("Whats your email?")
}

const register = {
    "username": text("Username: "),
    "password": password("Password: "),
    "_": yesno("Do you want to setup some personal information?").then(personalInfo)
};

prompter(register).then(console.log);
0.0.2

3 years ago

0.0.1

3 years ago