(decimal)
| 70 | }); |
| 71 | |
| 72 | function change(decimal) { |
| 73 | if (decimal === Infinity) { |
| 74 | return 'New file'; |
| 75 | } |
| 76 | if (decimal === -1) { |
| 77 | return 'Deleted'; |
| 78 | } |
| 79 | if (decimal < 0.0001) { |
| 80 | return '='; |
| 81 | } |
| 82 | return percentFormatter.format(decimal); |
| 83 | } |
| 84 | |
| 85 | const header = ` |
| 86 | | Name | +/- | Base | Current | +/- gzip | Base gzip | Current gzip | |