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 604ccb5 commit 303b96fCopy full SHA for 303b96f
1 file changed
implement-shell-tools/wc/wc.js
@@ -26,9 +26,9 @@ async function wcJsImplement() {
26
}
27
28
totalWords += wordsCount;
29
- console.log(`${linesCount} ${wordsCount} ${bytes} ${file}`);
+ console.log(`${String(linesCount).padStart(4)}${String(wordsCount).padStart(4)}${String(bytes).padStart(4)} ${file}`);
30
31
32
- console.log(`${totalLines} ${totalWords} ${TotalBytes} total`);
+ console.log(`${String(totalLines).padStart(4)}${String(totalWords).padStart(4)}${String(TotalBytes).padStart(4)} total`);
33
34
wcJsImplement();
0 commit comments