82 packages found
A random weighted item chooser with custom seed option for JavaScript and TypeScript.
Simple command line prompting utility
Typical random-related functions for JavaScript.
Randomly pick an item from a set (using the specified probabilities).
Validate and normalise user choice: array, object or both?
Sample elements from an array-like object.
- stdlib
- stdmath
- random
- rand
- mathematics
- math
- statistics
- stats
- sampling
- with replacement
- replacement
- discrete
- distribution
- urn
- View more
Confirm (yes/no) prompt. Can be used standalone or with a prompt system like [Enquirer].
- answer
- answers
- ask
- checkbox
- choice
- cli
- command
- confirm
- enquirer
- enquirerprompt
- input
- inquire
- inquirer
- interact
- View more
A customizable multiple choice question react component that is based on the superflows design language.
Handlebars inflection/pluralisation helpers
- handlebars
- helper
- internationalisation
- internationalization
- i18n
- pluralisation
- pluralization
- inflection
- substitution
- choice
get y/n answer from user on terminal via callback
List-style prompt. Can be used as a standalone prompt, or with a prompt system like [enquirer].
- answer
- answers
- ask
- checkbox
- choice
- cli
- command
- enquirer-prompt
- enquirerprompt
- input
- inquire
- inquirer
- interact
- list
- View more
Easy and beautiful CLI multiple-choice selection
Input Field UI Component
Generates random numbers, unique random numbers.
- random
- unique
- random-array
- unique-random
- random-objects
- probability
- choice
- weights
- random-char
- random-boolean
- random-int
- random-select
- radom-probability
Base prompt module used for creating custom prompts.
A simple dropdown element with JSX options for form.
- form
- select
- option
- choice
- js
- jsx
- react
- react-select
- dropdown
- react-dropdown
- input-select
- select-input
- custom-select
- jsx-dropdown
Radio prompt. Can be used as a standalone prompt, or as a plugin for [Enquirer].
- answer
- answers
- ask
- checkbox
- choice
- cli
- command
- enquirer
- enquirer-prompt
- enquirerprompt
- input
- inquire
- inquirer
- interact
- View more
jQuery plugin for fast selects with huge amount of options
A Collection of React components to make your React code simpler
An instant-runoff-voting algorithm implemented in Typescript.