@bemoje/terminal
v2.0.0
Published
Terminal utilities for interactive prompts and display management.
Maintainers
Readme
@mono/terminal
Terminal utilities for interactive prompts and display management.
Exports
- clearTerminal: Clears the terminal screen using the system's clear command.
- confirmPrompt: Prompts the user to confirm in the terminal.
Usage
Interactive Prompts
import { confirmPrompt } from '@mono/terminal'
const isSure = await confirmPrompt('Are you sure you want to deploy?')
if (isSure) {
// Proceed with deployment
}Screen Management
import { clearTerminal } from '@mono/terminal'
// Clears the terminal screen
clearTerminal()