1.0.0 • Published 3 years ago
stat-size-text v1.0.0
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 git@github.com: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 \jaid.jsx@gmail.com (https://github.com/jaid)
1.0.0
3 years ago