Low-level primitives for building interactive command-line applications.
Clack contains low-level primitives for implementing your own command-line applications.
$ import { prompt, select } from '@clack/core'; const answer = await prompt('What is your name?');$ import { text, confirm } from '@clack/core'; const name = await text({ message: 'Enter name', validate: (v) => v.length > 0 });$ import { select } from '@clack/core'; const choice = await select({ message: 'Pick one', options: [{value: 'a'}, {value: 'b'}] });$ import { spinner } from '@clack/core'; const s = spinner(); s.start('Processing...'); s.stop('Done!');$ import { note, outro, intro } from '@clack/core'; intro('Welcome'); note('Information'); outro('Finished');