Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
simple interactive menus using inquirer
The inquirer package is great for directed interactive sequences, but a CLI menu requires looping and maintaining some context. It's easy to end up with spaghetti code trying to handle nested submenus.
A pair of functions and some types to organize your ts code.
Choice
is fundamentally a named ChoiceCallback
(any function you'd like to execute when the user chooses it.)ChoiceGenerator
takes in a context (any object you'd like) and returns a Choice.menu()
takes as a parameter your own ChoiceGenerator.flow
set to FlowType.back
.functions for working with menus
The following types and interfaces are exposed by choicebrew.
Interfaces and enums used with choicebrew menus
type declarations for the functions used in menus
FAQs
simple interactive menus
The npm package choicebrew receives a total of 0 weekly downloads. As such, choicebrew popularity was classified as not popular.
We found that choicebrew demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.