stat-size-text
v1.0.0
Published
Promise that returns the size of a file or directory as string.
Downloads
9
Readme
stat-size-text
Promise that returns the size of a file or directory as string.
Installation
npm install --save stat-size-text@^1.0.0
yarn add stat-size-text@^1.0.0
(if configured properly)
npm install --save @jaid/stat-size-text@^1.0.0
Example
import statSizeText from "stat-size-text"
const result = statSizeText("pikachu_8x8.png")
Variable result
will be:
"129 B"
Development
Setting up:
git clone [email protected]:jaid/stat-size-text.git
cd stat-size-text
npm install
Testing:
npm run test:dev
Testing in production environment:
npm run test
License
MIT License
Copyright © 2020, Jaid <[email protected]> (https://github.com/jaid)