| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7d8cc2a commit cbab7ec
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -283,7 +283,7 @@ function formatResult(data) { | |||
| 283 | 283 | let rate = data.rate.toString().split('.'); | |
| 284 | 284 | rate[0] = rate[0].replace(/(\d)(?=(?:\d\d\d)+(?!\d))/g, '$1,'); | |
| 285 | 285 | rate = (rate[1] ? rate.join('.') : rate[0]); | |
| 286 | - return `${data.name}${conf}: ${rate}`; | ||
| 286 | + return `${data.name}${conf}: ${rate}\n`; | ||
| 287 | 287 | } | |
| 288 | 288 | ||
| 289 | 289 | function sendResult(data) { | |
@@ -292,7 +292,7 @@ function sendResult(data) { | |||
| 292 | 292 | process.send(data); | |
| 293 | 293 | } else { | |
| 294 | 294 | // Otherwise report by stdout | |
| 295 | - console.log(formatResult(data)); | ||
| 295 | + process.stdout.write(formatResult(data)); | ||
| 296 | 296 | } | |
| 297 | 297 | } | |
| 298 | 298 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments