@kumardeo/file-size
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@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);

Package Sidebar

Install

npm i @kumardeo/file-size

Weekly Downloads

4

Version

0.0.3

License

MIT

Unpacked Size

17.4 kB

Total Files

7

Last publish

Collaborators

  • kumardeo