An easy to use synchronous node.js library for using the terminal.
npm install terminal-utilities
const terminal = require('terminal-utilities')
This positions the cursor based on cols
and rows
.
This clears the terminal screen.
This clears a specific line.
This prints text
to the terminal.
This prints text
to the terminal, followed by a \n
.
This reads one line of input and returns it.
This prints an error to the terminal in the form: ERR: message