
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@node-cli/bundlecheck
Advanced tools
A CLI tool to check the bundle size of npm packages, similar to bundlephobia.com.
lodash@4.17.0)--versions flag--trend flag (bar graph across versions)npm install -g @node-cli/bundlecheck
Or use with npx:
npx @node-cli/bundlecheck <package-name>
bundlecheck lodash
bundlecheck @mantine/core
bundlecheck lodash@4.17.0
bundlecheck @versini/ui-panel@1.0.0
bundlecheck lodash --versions
bundlecheck @mantine/core --versions
This will fetch available versions from npm and let you select one from a list.
bundlecheck lodash --trend # default: 5 versions
bundlecheck clsx --trend 3 # custom: 3 versions
This analyzes recent versions and displays a bar graph showing how the bundle size has evolved:
Bundle Size Trend: clsx
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Gzip Size:
2.1.1 ββββββββββββββββββββββββββββββ 331 B
2.0.0 βββββββββββββββββββββββββββββ 321 B
1.2.0 βββββββββββββββββββββββββββββ 318 B
1.0.4 ββββββββββββββββββββββββββββ 308 B
1.0.1 ββββββββββββββββββββββββββ 285 B
Raw Size:
2.1.1 ββββββββββββββββββββββββββββββ 527 B
...
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Change from 1.0.1 to 2.1.1:
Gzip: +46 B (+16.1%)
Raw: +108 B (+25.8%)
bundlecheck @mantine/core "ScrollArea,Button"
bundlecheck lodash "debounce,throttle"
| Flag | Short | Description |
|---|---|---|
--help | -h | Display help instructions |
--version | -v | Output the current version |
--versions | -V | Choose from available package versions interactively |
--trend [N] | -t [N] | Show bundle size trend for N versions (default: 5) |
--boring | -b | Do not use color output |
--gzipLevel <n> | -g <n> | Gzip compression level (1-9, default: 5) |
--external <pkgs> | -e <pkgs> | Comma-separated additional packages to mark as external |
--noExternal | -n | Do not mark any packages as external |
--registry <url> | -r <url> | Custom npm registry URL (default: registry.npmjs.org) |
# Check the entire lodash package
bundlecheck lodash
# Check a specific version
bundlecheck lodash@4.17.0
bundlecheck @versini/ui-panel@1.0.0
# Check specific exports from @mantine/core
bundlecheck @mantine/core "ScrollArea,Button"
# Check react itself (without marking it as external)
bundlecheck react -n
# Add vue and svelte as additional externals
bundlecheck some-package --external "vue,svelte"
# Use a different gzip compression level
bundlecheck lodash --gzipLevel 6
# Choose version interactively
bundlecheck lodash --versions
# Show bundle size trend (default: 5 versions)
bundlecheck lodash --trend
# Show bundle size trend for 3 versions
bundlecheck lodash --trend 3
# Use a custom npm registry
bundlecheck @myorg/private-pkg --registry https://npm.mycompany.com
By default, react and react-dom are marked as external (not included in the bundle size) since most React-based packages expect these as peer dependencies. This matches how these packages would typically be used in a real application.
To include React/React-DOM in the bundle size calculation, use the --no-external flag.
Use the --registry flag to check packages from private or alternative npm registries:
# Private corporate registry
bundlecheck @myorg/myorg-ui-library --registry https://npm.mycompany.com
# Verdaccio local registry
bundlecheck my-local-pkg --registry http://localhost:4873
Note: If the registry requires authentication, ensure your npm/pnpm is configured with the appropriate credentials (via .npmrc or environment variables).
MIT - see LICENSE for details.
FAQs
CLI tool to check the bundle size of npm packages (like bundlephobia)
The npm package @node-cli/bundlecheck receives a total of 41 weekly downloads. As such, @node-cli/bundlecheck popularity was classified as not popular.
We found that @node-cli/bundlecheck demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.