@cpmech/ink-confirm
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

ink-confirm

React compoennt to receive a confirmation from the terminal. Using the Ink cli framework.

Example

const ready = (confirmed: boolean) => {
  console.log(`confirmed = ${confirmed}`);
}

render(<Confirm ready={ready} question="Are you sure? [y/n]" defaultAnswer="yes" />);

Readme

Keywords

Package Sidebar

Install

npm i @cpmech/ink-confirm

Weekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

9.37 kB

Total Files

13

Last publish

Collaborators

  • dorival