bytes-parser

1.0.0 • Public • Published

by-parser

Convert bytes into human-readable sizes like 1 KB, 1 MB, etc.

Install

npm install byte-parser

Usage

const humanBytes = require("byte-parser");

humanBytes(0); // "0 B"
humanBytes(1024); // "1 KB"
humanBytes(1048576); // "1 MB"
humanBytes(1073741824); // "1 GB"

Package Sidebar

Install

npm i bytes-parser

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

996 B

Total Files

3

Last publish

Collaborators

  • aset-astify