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

1.1.1 • Public • Published

Sizet

Easily Calculate the size of an NPM package

Basic Usage

import { remote, local } from "sizet";

/**
 * Remote is a function to calculate
 * the size of a dependency hosted
 * on the NPM registry.
 */
remote("react@latest");

/**
 * Local is a function to calculate
 * the size of a dependency ina specific folder
 * it also requires for the folder
 * to have a valid package.json.
 */
local("dist/");

Read the full documentation on the Github Repository

Package Sidebar

Install

npm i sizet

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

3.27 kB

Total Files

6

Last publish

Collaborators

  • flzyy