@inquirer/core
12.1.1 · 22 Nov 2026MIT101.8M / weekRepositoryHomepagenpmAtom feed
Your version
9.2.1 is the newest release of 9.x.
Release note
All custom errors thrown from inquirer now includes a name attribute reflecting the error class. When checking if an error comes from inquirer AND using a bundler (like tsup, rollup, etc), instanceof might not work as you expect it to. So instead, it is recommend to follow this example:
- if (error instanceof ExitPromptError) {
+ if (error.name === 'ExitPromptError') {A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.