Skip to content

Commit 78fb46b

Browse files
committed
Revert "Add spinner indicator"
This reverts commit a4dbfb2.
1 parent a4dbfb2 commit 78fb46b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/handler.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ export async function handleRender(source, options) {
4242

4343
try {
4444
const start = Date.now();
45-
let spinner = showSpinner();
4645
const output = await render(content, options);
47-
spinner.stop();
4846
const time = (Date.now() - start) / 1000;
4947
if (output) {
5048
console.log(`Saved to ${output}. (${time}s)`);
@@ -214,18 +212,3 @@ function readTime(number, options = {}) {
214212
}
215213
return Math.min(result, options.max ?? Infinity);
216214
}
217-
218-
function showSpinner() {
219-
let i = 0;
220-
let spinner = ['|', '/', '-', '\\'];
221-
let timer = setInterval(() => {
222-
process.stdout.write(`\r${spinner[i++]}`);
223-
i &= 3;
224-
}, 100);
225-
return {
226-
stop: () => {
227-
clearInterval(timer);
228-
process.stdout.write('\r');
229-
}
230-
}
231-
}

0 commit comments

Comments
 (0)