@jrichman/ink

React library for building interactive command-line user interfaces.

npmmacoslinuxwindows
Try with needOr install directly
Source

About

React for CLI

Examples

create an interactive menu in terminal$ npm install @jrichman/ink && npx ink-cli
build a CLI app with React components$ import { render } from '@jrichman/ink'; import App from './App'; render(<App />);
display colored text and styled output in terminal$ import { Box, Text } from '@jrichman/ink'; render(<Box><Text color='green'>Hello</Text></Box>);
make a CLI spinner loader component$ import Spinner from 'ink-spinner'; render(<Spinner type='dots' /> Loading...);
create interactive command-line input form$ import TextInput from 'ink-text-input'; render(<TextInput placeholder='Enter name' />);