@clack/prompts: The Modern Alternative to Inquirer.js
@clack/prompts: The Modern Alternative to Inquirer.js If you have built a CLI tool in Node.js, you have almost certainly used Inquirer.js. It has been the default interactive prompt library for ove...

Source: DEV Community
@clack/prompts: The Modern Alternative to Inquirer.js If you have built a CLI tool in Node.js, you have almost certainly used Inquirer.js. It has been the default interactive prompt library for over a decade. But defaults change. A newer library called @clack/prompts has arrived, and it is making Inquirer feel like jQuery in a React world. This article covers why @clack/prompts is gaining traction, how its API works, and how to migrate from Inquirer without pain. Why Developers Are Switching Inquirer.js works. It has for years. But it carries baggage. The v9+ rewrite moved to ESM-only with a modular @inquirer/prompts package, which fractured the ecosystem. Plugin compatibility broke. TypeScript support was bolted on. Styling requires manual ANSI escape codes or third-party libraries like chalk. @clack/prompts takes a different approach. It ships beautiful, opinionated styling out of the box. No configuration, no theming layer, no plugins. You get polished terminal UI from the first lin