@goodies/get-readable-size
v1.0.3
Published
A straightforward package to get the readable variant of a (disk) size.
Downloads
1
Readme
get-readable-size
System Requirements
Installation
npm i @goodies/get-readable-size
yarn add @goodies/get-readable-size
Usage
import getReadableSize from '@goodies/get-readable-size'
const size = await getReadableSize(3900000)
console.log(size) // 3.9 MB