file-bytes-formatter
v1.0.4
Published
This package will return human readable file size in Bytes, Kb, Mb, Gb, Tb, Pb, Eb, Zb, Yb
Downloads
641
Maintainers
Readme
file-bytes-formatter
This package will return human readable file size in Bytes, Kb, Mb, Gb, Tb, Pb, Eb, Zb, Yb
Example
For Node js
var Fsf = require("file-bytes-formatter")
console.log(Fsf(2020202))
For React js
import Fsf from "file-bytes-formatter"
console.log(Fsf(2020202))
Output:
1.93 MB
Parameters
1.Size (Number)