mrkeyoor.comAsk

SBoudrias/Inquirer.jstested 06 Oct 2026commit a9436bd

Inquirer.js review

Consider Inquirer.js for a JavaScript wizard that a person answers at a terminal.

  • Install 40 s
433/438passed, run exited non-zero
  • 494 packages
Dev Toolsevaluationupdated 13 Nov 2026
-1stars / 7d

Inquirer.js is a collection of interactive questions for JavaScript command-line tools. Its modern API provides individual prompt functions for input, choices and confirmations.

Verdict

Consider Inquirer.js for a JavaScript wizard that a person answers at a terminal. For @inquirer/prompts@8.8.0, first confirm Node.js ^22.22.2 || ^24.15.0 || >=26.0.0, then check cancellation, input ownership and required plugins. Source contributors should reproduce the localized-confirm failures at a9436bd before relying on that checkout's suite. The stored run establishes successful installation and a failing test command; deployed CLI behavior remains untested.

We ran it

Lab card: what happened when we ran Inquirer.js
Lab card from our sandbox run
Screenshot of Inquirer.js (github.com/SBoudrias/Inquirer.js)
github.com/SBoudrias/Inquirer.js
Install✓ · 40s494 packages · 282 MB
Buildn/ano build script
Tests✗ · 37s433 passed · 4 failed · 1 skipped of 438 (vitest)
Repo278 files~23,640 lines of source · 1.5 MB · 5 CI workflows

Answers from our run

Does Inquirer.js build from source?

Dependencies installed in 40 seconds (494 packages), and the project has no separate build step. We cloned commit a9436bd into a clean Debian container with 3 CPUs and no project-specific setup.

Do Inquirer.js's tests pass?

No. The project's own test command finished in 37 seconds and reported 433 passed, 4 failed, 1 skipped (vitest).

Who should not use Inquirer.js?

Unattended jobs without an interactive input stream.

What are the alternatives to Inquirer.js?

Prompts, Clack. Consider Inquirer.

Setup3/5Our source checkout installed in 40 s, a heavy install of 494 dependencies, and we did not run a README task.Editor’s note: The checkout installed, but integration of a deployed CLI in a supported runtime and terminal was not assessed.
Docs4/5Under the visible documentation rubric, the supplied README provides detailed installation, branching, cancellation, stdin and migration guidance; application terminal checks remain.
Community5/5Last push on 2026-11-12 and 21,641 stars.Editor’s note: The supplied issue and repository facts do not establish adoption or support responsiveness.
Maturity4/5Latest release @inquirer/i18n@1.4.0 on 2026-11-10, repository created 2013-05-17 and its test suite did not pass in our sandbox (433 of 438 passed).Editor’s note: The recorded source run and documentation do not establish reliability of deployed CLI applications.

How we score

Who it’s for

JavaScript CLI authors building setup wizards that a person answers at a terminal.
Maintainers prepared to handle cancellation, terminal input ownership and runtime requirements.

Who it’s NOT for

Unattended jobs without an interactive input stream.
Applications adopting @inquirer/prompts@8.8.0 whose runtime does not satisfy ^22.22.2 || ^24.15.0 || >=26.0.0.
Teams replacing a legacy wizard before checking required community plugins.

Setup reality

Our October 6, 2026 run at commit a9436bd completed the Yarn install in 40 seconds, recording 494 dependencies and 282 MB on disk. The separate build step was skipped because no build script or target was detected. The test command exited 1 in 37 seconds. The stored summary records 433 passed, 4 failed and 1 skipped of 438. The log identifies packages/i18n/test/confirm.test.ts as the failing file and shows a 5000 ms test timeout.

The README installs @inquirer/prompts. The supplied release notes specify that @inquirer/prompts@8.8.0 requires Node.js ^22.22.2 || ^24.15.0 || >=26.0.0. Check that range before adopting that version. These release requirements do not establish the runtime used for the October checkout.

The sandbox configuration recorded 3 CPUs, 8 GB RAM and image label lab-node:22. The label alone does not establish the actual runtime version. The dependency measurement covers the source checkout, not an installation of only the published prompt package.

Choose Inquirer when a person is answering

Inquirer.js gives JavaScript command-line tools ready-made questions, including searchable choices, checkboxes and an external-editor prompt. Consider it for a setup wizard where a person is present. Inquirer cannot run in a non-interactive shell without an interactive input stream. Give unattended commands another way to obtain answers.

The modern API returns an answer from each awaited prompt. Branching stays in application code: the README shows a confirmation followed by an email question only when the answer is yes.

Before adopting @inquirer/prompts@8.8.0, check its Node.js requirement: ^22.22.2 || ^24.15.0 || >=26.0.0. The release notes give that exact range. A generic Node 22 label is insufficient to establish compatibility with it.

What happened when we ran it

Our stored sandbox run on October 6, 2026, at commit a9436bd installed successfully, but the test command exited 1. This correction uses that recorded execution; no new execution was performed.

Step Recorded outcome
Yarn install Succeeded in 40 seconds; 494 dependencies recorded, 282 MB on disk
Build Skipped because no build script or target was detected
Vitest 433 passed, 4 failed, 1 skipped of 438; command exited 1 in 37 seconds

These are the stored aggregate counts, not a reconciled inventory of unique tests. The log identifies four failures in packages/i18n/test/confirm.test.ts and shows the error "Test timed out in 5000ms." Its file summary reports one failed file and 33 passing files. Contributors have a concrete starting point: reproduce those localized-confirm failures at the recorded commit. The supplied log does not establish their cause or show that localized confirmation fails in a deployed application.

The harness recorded 3 CPUs, 8 GB RAM and image label lab-node:22. The actual runtime version is not established. The checkout contained 278 files and about 23,640 source lines, occupying 1.5 MB before dependencies. The harness detected monorepo workspaces and five CI workflow files. Its lack of a top-level tests directory does not mean tests were absent: the log shows tests inside packages.

Terminal input needs explicit ownership

The README warns that custom input streams and piped stdin may need raw mode for arrow keys to work. It also tells callers with an existing node:readline interface to pause that interface before opening a prompt and resume it after the prompt settles. Check that handoff in your application.

Ctrl+C rejects the prompt promise. Handle cancellation at the command boundary so quitting a wizard does not produce an unhandled stack trace. Preserve unrelated errors rather than hiding every exception.

Symptom Documented place to look
Arrow keys do nothing with custom stdin Raw-mode handling and input-stream ownership
Git hook has no interactive input The README's TTY recipe for scripts and hooks
Ctrl+C prints a stack trace Rejected prompt promise and application error handling

These are documentation-based integration checks. They do not explain the localized-confirm timeouts in the recorded run.

Check legacy plugins before migrating

The README describes the previous package as maintained but no longer actively developed. It also warns that community prompts may not have migrated to the latest API. Inventory required plugins before replacing an established wizard with @inquirer/prompts.

The inquirer library guide covers the legacy question-object interface. This repository review focuses on the modern prompt functions, terminal integration and the recorded source run.

Treat the Windows report as a specific report

In issue #1783, opened July 3, 2025, CarbonCollins reports that only the first select choice appears in PowerShell and Git Bash, while arrow navigation still changes the selection. The reporter says they tested @inquirer/select versions 7.4.0 through 7.6.0 and contrasts the result with working rendering in WSL.

The supplied page shows the issue open. A June 6, 2026 maintainer reply requests runtime, terminal and output-trace details; it does not establish a resolution. This historical report does not verify current-release behavior. If Windows terminals are part of your audience, check the shell and terminal application your users actually open.

Alternatives by API preference

Prompts accepts question objects and returns an object containing the responses. Consider it when defining a question chain and collecting named answers fits your application.

Clack provides opinionated prompt components through @clack/prompts and headless, unstyled primitives through @clack/core. Consider it when that presentation or lower-level interface fits your CLI.

These recommendations concern documented API choices. Neither alternative was executed for this review, and no speed or reliability ranking is implied.

What the ratings assess

The documentation rubric is: 1 means missing task guidance; 2 means substantial gaps in the reviewed tasks; 3 means a basic usable path; 4 means detailed guidance with application checks remaining; 5 means all reviewed integration questions are answered. Documentation receives 4/5 for its installation, conditional-question, cancellation, stdin and migration guidance. Actual terminal behavior still needs application testing. This score assesses the supplied documentation, not compatibility or reliability.

Setup ease, community support and production maturity remain unassessed. A source-checkout installation does not establish the ease of integrating a supported deployed CLI. Adoption and support responsiveness were not assessed.

What we have not tested

The supplied run does not establish the timeout cause, actual runtime version, terminal compatibility, accessibility, runtime performance or the footprint of installing only the published prompt package. There is no security audit result or separately exercised deployed CLI in this record. The October checkout result does not verify @inquirer/prompts@8.8.0.

Before adopting Inquirer, check the selected package version's runtime requirement, then make your smallest representative wizard handle cancellation and input ownership in your users' terminal.

Alternatives

ProjectWhat it isPick it when
PromptsAccepts question objects and returns responses in an object.Choose it when a question-chain API and named answers fit your application.
ClackProvides opinionated prompt components and separate headless, unstyled primitives.Choose it when its documented presentation or lower-level primitives fit the interface you want.

Sources

  1. Inquirer README
  2. Windows select rendering report
  3. Inquirer releases
  4. Prompts README
  5. Clack README

More dev tools reviews