1.0.2 • Published 3 years ago

stat-size v1.0.2

Weekly downloads
19
License
-
Repository
github
Last release
3 years ago

stat-size



Promise that returns the size of a file or directory.

Installation

npm install --save stat-size@^1.0.2

yarn add stat-size@^1.0.2


(if configured properly)

npm install --save @jaid/stat-size@^1.0.2

Example

import statSize from "stat-size"

const result = statSize("pikachu_8x8.png")

Variable result will be:

129

Development

Setting up:

git clone git@github.com:jaid/stat-size.git
cd stat-size
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)