@kumardeo/file-size
v0.0.3
Published
An utility for calculating file or directory size
Downloads
1
Maintainers
Readme
@kumardeo/file-size
An utility for calculating file or directory size.
Installation
Install it by running the following command:
npm install @kumardeo/file-size
CLI
npx @kumardeo/file-size build --gzip --include ".(js|ts)$"
API
import { fileSizeSync } from "@kumardeo/file-size";
const result = fileSizeSync(new URL("./build", import.meta.url), {
include: [/\.(js|ts)$/]
});
console.log(result);