alternate-screen
Utility to switch terminal screens. Read question on SO
Installation
npm install --save alternate-screen
Usage
Node.JS:
const show hide = console console console
Babel:
console console console
API
show
and showAlternateScreen
Write to terminale escape sequence to switch screen to alternate.
hide
and hideAlternateScreen
Write to terminale escape sequence to switch screen back to main.
Example
Clone repository and run:
node ./test.js
License
MIT @ Sergey Sova