stat-size
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

stat-size

License Sponsor stat-size
Build status Commits since v1.0.2 Last commit Issues
Latest version on npm Dependents Downloads

Promise that returns the size of a file or directory.

Installation

stat-size on npm

npm install --save stat-size@^1.0.2

stat-size on Yarn

yarn add stat-size@^1.0.2

@jaid/stat-size on GitHub Packages
(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)

Package Sidebar

Install

npm i stat-size

Weekly Downloads

3

Version

1.0.2

License

none

Unpacked Size

6.35 kB

Total Files

5

Last publish

Collaborators

  • jaid