(bytes)
| 28 | function humanMinMBFromKB(kb){ return humanBytes(num(kb) * 1000, 1000 * 1000); } |
| 29 | function humanMinMBFromMB(mb){ return humanBytes(num(mb) * 1000 * 1000, 1000 * 1000); } |
| 30 | function humanMinMBFromB(bytes){ return humanBytes(num(bytes), 1000 * 1000); } |
| 31 | function humanMinKBFromB(bytes){ return humanBytes(num(bytes), 1000); } |
| 32 | function humanBytes(bytes, minUnit){ |
| 33 | if(!Number.isFinite(bytes)) return '-'; |
no test coverage detected