@cpmech/ink-confirm

v0.1.1
My awesome package
ink-confirm

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" />);
npm i @cpmech/[email protected]

Metadata

  • MIT
  • Whatever
  • Dorival Pedroso
  • released 4/25/2019

Downloads

Maintainers