/cli-select-opts

Select options implementation in the terminal using Nodejs

Primary LanguageJavaScript

A select options utility for the terminal

Usage

  • Download and cd into the directory.
  • Run node test.

Examples

const { Select } = require("./")

const jsFrameworkSel = new Select({
    question: "Which of these is your fav JS framework?",
    options: ["Angular", "React", "Vue", "Svelte"],
    answers: ["angular", "react", "vue", "svelte"],
    pointer: ">",
    color: "magenta"
})

jsFrameworkSel.start()
const stylingTypeSel = new Select({
    question: "Which styling do you want?",
    options: ["CSS", "SASS", "SCSS", "LESS"],
    answers: ["css", "sass", "scss", "less"],
    pointer: "-",
    color: 'red'
})

stylingTypeSel.start()