Skip to content

formatBytes & parseBytes

Converts raw byte counts into localized human-readable file sizes and parses strings back into bytes.

2.3 KB
•
Updated on September 3, 2026

Example 2: Cloud Storage Usage Meter

Installation

Bash

Usage

Code

API Reference

Parameters / Props

Return Value