Skip to content

Yamboy1/terminal-utilities

Repository files navigation

terminal-utilities

Travis JavaScript Style Guide npm David

An easy to use synchronous node.js library for using the terminal.

Installation

npm install terminal-utilities

Usage

const terminal = require('terminal-utilities')

Docs

setCursor(cols, rows)

This positions the cursor based on cols and rows.

clear()

This clears the terminal screen.

clearLine(line)

This clears a specific line.

write(text)

This prints text to the terminal.

writeLine(text)

This prints text to the terminal, followed by a \n.

readLine()

This reads one line of input and returns it.

error(message)

This prints an error to the terminal in the form: ERR: message

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published