file-bytes-formatter

1.0.4 • Public • Published

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)

Dependents (4)

Package Sidebar

Install

npm i file-bytes-formatter

Weekly Downloads

165

Version

1.0.4

License

ISC

Unpacked Size

1.27 kB

Total Files

3

Last publish

Collaborators

  • iamsvmohan