@cpmech/ink-confirm
v0.1.0 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]
Source Code
github.com/cpmech/ink-confir...Metadata
- MIT
- Whatever
- Dorival Pedroso
- released 4/25/2019