Skip to content

Commit

Permalink
Added new nullary qoa.clearScreen() function (#3)
Browse files Browse the repository at this point in the history
feat: add clear screen function (#3)
  • Loading branch information
davutkara authored and klaudiosinani committed Feb 10, 2019
1 parent b63a891 commit 3999c75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/qoa.js
Expand Up @@ -62,6 +62,11 @@ class Qoa {
return new Secure(this._buildConfig(x)).request();
}

clearScreen() {
process.stdout.cursorTo(0, 0);
process.stdout.clearScreenDown();
}

async prompt(questions) {
const answers = {};

Expand Down

0 comments on commit 3999c75

Please sign in to comment.