0.1.5 • Published 5 years ago
@cpmech/ink-confirm v0.1.5
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" />);