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.
MiB
1 parent 4bbebdc commit 37134f1Copy full SHA for 37134f1
src/routes/(pkg)/[...pkg]/v/[v]/+page.svelte
@@ -75,9 +75,10 @@
75
class="hover:underline"
76
>
77
<span class="break-words"
78
- >{data.homepage
79
- .replace(/http?s:\/\//, '')
80
- .replace(/\/$/, '')}</span
+ >{data.homepage.replace(
+ /(http?s:\/\/)|(\/$)/g,
+ '',
81
+ )}</span
82
83
</a>
84
</div>
@@ -91,7 +92,8 @@
91
92
<div class="flex flex-col">
93
<span class="font-extrabold">Size:</span>
94
<span
- >{(data.dist.unpackedSize / (1000 * 1000)).toFixed(2)} MB</span
95
+ >{(data.dist.unpackedSize / (1000 * 1000)).toFixed(2)} MB<br
96
+ />{(data.dist.unpackedSize / (1024 * 1024)).toFixed(2)} MiB</span
97
98
99
0 commit comments