@@ -44,11 +44,11 @@ if (pathInfo.isFile()) {
4444 const content = await fs . readFile ( path , "utf-8" ) ;
4545 const stats = counter ( content ) ;
4646 if ( options . line ) {
47- console . log ( `${ stats . lines } ${ path } ` ) ;
47+ console . log ( ` ${ stats . lines } ${ path } ` ) ;
4848 } else if ( options . word ) {
49- console . log ( `${ stats . words } ${ path } ` ) ;
49+ console . log ( ` ${ stats . words } ${ path } ` ) ;
5050 } else if ( options . character ) {
51- console . log ( `${ stats . characters } ${ path } ` ) ;
51+ console . log ( ` ${ stats . characters } ${ path } ` ) ;
5252 } else {
5353 console . log ( ` ${ stats . lines } ${ stats . words } ${ stats . characters } ${ path } ` ) ;
5454 }
@@ -66,11 +66,11 @@ if (pathInfo.isFile()) {
6666 const stats = counter ( fileContent ) ;
6767
6868 if ( options . line ) {
69- console . log ( `${ stats . lines } ${ filePath } ` ) ;
69+ console . log ( ` ${ stats . lines } ${ filePath } ` ) ;
7070 } else if ( options . word ) {
71- console . log ( `${ stats . words } ${ filePath } ` ) ;
71+ console . log ( ` ${ stats . words } ${ filePath } ` ) ;
7272 } else if ( options . character ) {
73- console . log ( `${ stats . characters } ${ filePath } ` ) ;
73+ console . log ( ` ${ stats . characters } ${ filePath } ` ) ;
7474 } else {
7575 console . log ( ` ${ stats . lines } ${ stats . words } ${ stats . characters } ${ path } ` ) ;
7676 }
@@ -86,12 +86,12 @@ if (pathInfo.isFile()) {
8686
8787if ( fileCount > 1 ) {
8888 if ( options . line ) {
89- console . log ( `${ totalLines } total ` ) ;
89+ console . log ( ` ${ totalLines } ` ) ;
9090 } else if ( options . word ) {
91- console . log ( `${ totalWords } total ` ) ;
91+ console . log ( ` ${ totalWords } ` ) ;
9292 } else if ( options . character ) {
93- console . log ( `${ totalCharacters } total ` ) ;
93+ console . log ( ` ${ totalCharacters } ` ) ;
9494 } else {
95- console . log ( ` ${ stats . lines } ${ stats . words } ${ stats . characters } ${ path } ` ) ;
95+ console . log ( ` ${ totalLines } ${ totalWords } ${ totalCharacters } ` ) ;
9696 }
9797}
0 commit comments