What is sizium?
sizium is a opensource tool to get the actual size of any local or remote package.

Usage
You can use the full Sizium by installing the sizium library or you can use only the parts you need to get better performance.
npx sizium --helppnpx sizium --helpyarn dlx sizium --helpbunx sizium --helpdeno run -A npm:sizium --helpLibrary
Core Library
Use in your JavaScript or TypeScript project.
npm install @sizium/corepnpm install @sizium/coreyarn add @sizium/corebun add @sizium/coredeno add @sizium/coreimport {Sizium} from '@sizium/core'
const pkg = new Sizium('[email protected]')
const data = await pkg.get()
console.log(data)CLI
Use the Command line Interface in your system.
npx sizium --helppnpx sizium --helpyarn dlx sizium --helpbunx sizium --helpdeno run -A npm:sizium --helpnpm install @sizium/clipnpm install @sizium/cliyarn add @sizium/clibun add @sizium/clideno add @sizium/clisizium -i chalkREST API
You can implement the API wherever you want and even extend it if you wish.
The API is built with backan, which is a wrapper for hono, meaning that hono instructions can be used to implement the API wherever you want.
npm install @sizium/apipnpm install @sizium/apiyarn add @sizium/apibun add @sizium/apideno add @sizium/apiNode server
We have a package that already has the API on a Node.js server. Below is an example of its use.
npm install @sizium/node-serverpnpm install @sizium/node-serveryarn add @sizium/node-serverbun add @sizium/node-serverdeno add @sizium/node-serversizium-server --port 1312curl http://localhost:1312/size?input=beppExecutables
You can use sizium as a standalone executable for your OS.
This is perfect if you want to use it outside of a Javascript environment.
Available for
x64andarm64architectures
