Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

byte-human

hyperz111305ISC0.1.1TypeScript support: included

Convert byte size to human-readable size

byte, bytes, convert, conversion, human-readable, kilobyte, megabyte, gigabyte, terabyte

readme

byte-human

Convert byte size to human-readable size

Install

$ npm i byte-human

Usage

If you use ES Module Syntax

import byteHuman from 'byte-human';

byteHuman(2324606976); // => 2.32GB

If you use CommonJS Module Syntax

const byteHuman = require('byte-human');

byteHuman(2324606976); // => 2.32GB

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[0.1.0] - 2025-05-28

Added

  • Initial release