Skip to content

Force convert to a level #19

@ganna-shmatova

Description

@ganna-shmatova

ei, if I want to display disk usage. Used converts to 20 mb, max to 2tb. Be nice to be able to have them same unit.

something like:

var total = bytes(disk.total);
var used = bytes(disk.used, total); //or total.match(/[a-z]/i)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions