Skip to content

cirocosta/humanb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

humanb Build Status

Transforms a given filesize into a more readable form

Usage

This module is meant to be used in, at least, three different scenarios

Nodejs

var humanb = require('humanb');

var filesizes = 1024;

humanb(filesize);

// 1kb

Browser

Just reference the library and use it :)

Shell

humanb 1024

# 1kb