Have ideas to improve npm?Join in the discussion! »

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)

Install

npm i file-bytes-formatter

DownloadsWeekly Downloads

69

Version

1.0.4

License

ISC

Unpacked Size

1.27 kB

Total Files

3

Last publish

Collaborators

  • avatar