EN: Semantic file size, convert bytes into a readable file size.
ZH: 语义化文件大小,把字节转换成正常文件大小。
Usage:
const ret = getFileSize(1024);console.log(ret); Copy
const ret = getFileSize(1024);console.log(ret);
Output:
1 KB Copy
1 KB
EN: Semantic file size, convert bytes into a readable file size.
ZH: 语义化文件大小,把字节转换成正常文件大小。
Usage:
Output: