We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9519252 commit a5aa563Copy full SHA for a5aa563
bin/pub.mjs
@@ -2,6 +2,7 @@
2
3
import boxen from 'boxen'
4
import chokidar from 'chokidar'
5
+import readline from 'readline'
6
import k from 'kleur'
7
import { lookup } from 'mrmime'
8
import fs from 'node:fs'
@@ -17,8 +18,8 @@ const box = (...args) => console.log(boxen(...args))
17
18
const pad = (msg) => msg.padEnd(4, ' ')
19
20
const clearLastLine = () => {
- process.stdout.moveCursor(0, -1) // up one line
21
- process.stdout.clearLine(1) // from cursor to end
+ readline.cursorTo(process.stdout, 0, -1)
22
+ readline.clearScreenDown(process.stdout)
23
}
24
25
const readConfig = async (path) => {
0 commit comments