PageSourceSearch

https://ai.deovr.com/assets/prettifyFileSize-CMY4reTx.js

js deovr.com collected 2026-10-03 20:25:51 UTC 1,106 bytes, 1 lines download raw bytes

1const m=["B","KB","MB","GB","TB"],a={B:"B",KB:"KB",MB:"MB",GB:"GB",TB:"TB"},n=({size:t,from:o,to:i,multiplier:r=1e3})=>{const e=Object.fromEntries(m.map((s,B)=>[s,Math.pow(r,B)]));return t*(e[o]/e[i])},c=(t,o)=>{const i=o?.maxUnit??"TB",r=o?.multiplier,e=o?.translationMap??a,s=n({size:1,from:"KB",to:"B",multiplier:r}),B=n({size:1,from:"MB",to:"B",multiplier:r}),l=n({size:1,from:"GB",to:"B",multiplier:r}),u=n({size:1,from:"TB",to:"B",multiplier:r});return i==="B"||t<s?`${t} ${e.B}`:i==="KB"||t<B?`${Number(n({size:t,from:"B",to:"KB",multiplier:r}).toFixed(1))} ${e.KB}`:i==="MB"||t<l?`${Number(n({size:t,from:"B",to:"MB",multiplier:r}).toFixed(1))} ${e.MB}`:i==="GB"||t<u?`${Number(n({size:t,from:"B",to:"GB",multiplier:r}).toFixed(2))} ${e.GB}`:`${Number(n({size:t,from:"B",to:"TB",multiplier:r}).toFixed(2))} ${e.TB}`},f=(t,o=" ")=>{const[i,r]=String(t).split(".");let e="",s=0;for(let B=i.length-1;B>=0;B--)e=i[B]+e,s+=1,s===3&&B>0&&(e=o+e,s=0);return r!==void 0&&(e+="."+r),e};function p(t,o="GB"){const[i,r]=c(Number(t),{maxUnit:o,multiplier:1024}).split(" ");return f(+i,",")+` ${r}`}export{p};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.