MCPcopy Create free account
hub / github.com/devin87/Q.js / formatSize

Function formatSize

node/Q.js:1496–1515  ·  view source on GitHub ↗

* 格式化数字输出,将数字转为合适的单位输出,默认按照1024层级转为文件单位输出 * @param {number} size 要解析的数字 * @param {object} ops 配置对象 {all:false,steps:1024,limit:100,trim:true,join:'',units:['B','KB','MB','GB'],digit:2,start:0,defValue:'--'}

(size, ops)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

parseLevelFunction · 0.70
defFunction · 0.70

Tested by

no test coverage detected