MCPcopy Index your code
hub / github.com/TheDevMinerTV/package-size-calculator

github.com/TheDevMinerTV/package-size-calculator @v1.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.4.0 ↗ · + Follow
106 symbols 320 edges 22 files 0 documented · 0% updated 14d agov1.4.0 · 2024-07-20★ 1104 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Package size calculator

Simple tool to calculate the size of a NPM package. It installs the package in a Docker container so any malicious packages won't affect your system.

Using

You can find the built binaries here.

:warning: package-size-calculator requires having a Docker daemon running.

package-size-calculator

The following additional flags are available:

--short      : Print a shorter version of the package report, ideal for posts to Twitter
--no-cleanup : Don't remove the temporary directory after the calculation

--npm-cache <DIRECTORY>: Use the specified directory as the NPM cache, defaults to generating a temporary directory
--npm-cache-read-write : Mount the NPM cache directory as read-write, defaults to true, only honored if --npm-cache is specified

License

Package size calculator is licensed under the MIT License. See LICENSE for the full license text.

Extension points exported contracts — how you extend this code

Item (Interface)
(no doc) [6 implementers]
pkg/ui_components/item.go
Opt (FuncType)
(no doc)
pkg/npm/client.go
StringToItemConvertFunc (FuncType)
(no doc)
pkg/ui_components/item.go

Core symbols most depended-on inside this repo

String
called by 31
pkg/ui_components/item.go
grayParens
called by 18
report.go
Join
called by 9
internal/tmp_dir.go
fmtPercent
called by 7
report.go
AsDependency
called by 6
dependency_change.go
Run
called by 6
pkg/ui_components/multi_select.go
calculatePercentage
called by 5
dependency_change.go
getSubdependenciesCount
called by 5
dependency_change.go

Shape

Function 42
Method 38
Struct 16
TypeAlias 7
FuncType 2
Interface 1

Languages

Go100%

Modules by API surface

dependency_change.go23 symbols
pkg/npm/package_json.go11 symbols
report.go9 symbols
pkg/npm/package.go8 symbols
pkg/npm/client.go6 symbols
pkg/ui_components/item.go5 symbols
internal/tmp_dir.go5 symbols
version_size_diff.go4 symbols
pkg/ui_components/multi_select.go4 symbols
pkg/ui_components/editable_list.go4 symbols
pkg/npm/package_lock.go4 symbols
pkg/npm/download_counts.go4 symbols

For agents

$ claude mcp add package-size-calculator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page