
Product
Introducing Manifest Alerts
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.
@esmj/size
Advanced tools
The @esmj/size show you javascript cost for your defined packages. The packages is bundled with Webpack. Then show the bundle size and downloaded time for javascript bundle.
npm install -g @esmj/size
esmj-size @merkur/core
// or
npx @esmj/size @merkur/core
esmj-size react,react-dom
# ┌────────────────────────────────────────┬────────────────────┬────────────────────┬────────────────────┐
# │ Package │ Minify │ Minify+Gzip │ Minify+Brotli │
# ├────────────────────────────────────────┼────────────────────┼────────────────────┼────────────────────┤
# │ react,react-dom │ 136.28 KB │ 41.49 KB │ 36.03 KB │
# └────────────────────────────────────────┴────────────────────┴────────────────────┴────────────────────┘
# ┌────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┐
# │ Bundle │ 2g │ 3g │ 4g │ 5g │
# ├────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┤
# │ minify │ 11.63 s │ 2.79 s │ 159.48 ms │ 62.02 ms │
# ├────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┤
# │ gzip │ 3.54 s │ 849.76 ms │ 48.56 ms │ 18.88 ms │
# ├────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┤
# │ brotli │ 3.07 s │ 737.82 ms │ 42.16 ms │ 16.4 ms │
# └────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────┘
# ┌────────────────────┬──────────────────────────────┬──────────┬──────────┬───────────────┬───────────────┬───────────────┐
# │ package │ downloads day / week / month │ version │ license │ created │ updated │ unpacked size │
# ├────────────────────┼──────────────────────────────┼──────────┼──────────┼───────────────┼───────────────┼───────────────┤
# │ react │ 2.36M / 15.26M / 64.29M │ 18.1.0 │ MIT │ 2011-10-26 │ 1 days ago │ 308.05 KB │
# ├────────────────────┼──────────────────────────────┼──────────┼──────────┼───────────────┼───────────────┼───────────────┤
# │ react-dom │ 2.18M / 14.03M / 59.02M │ 18.1.0 │ MIT │ 2014-5-6 │ 1 days ago │ 4.2 MB │
# └────────────────────┴──────────────────────────────┴──────────┴──────────┴───────────────┴───────────────┴───────────────┘
esmj-size easy-uid --pretty
# {
# bundle: {
# minify: {
# size: 307,
# speed: {
# '2g': 25.583333333333332,
# '3g': 6.14,
# '4g': 0.35085714285714287,
# '5g': 0.13644444444444445
# }
# },
# gzip: {
# size: 226,
# speed: {
# '2g': 18.833333333333332,
# '3g': 4.52,
# '4g': 0.2582857142857143,
# '5g': 0.10044444444444445
# }
# },
# brotli: {
# size: 180,
# speed: { '2g': 15, '3g': 3.6, '4g': 0.2057142857142857, '5g': 0.08 }
# }
# },
# 'easy-uid': {
# downloads: { day: 3, week: 38, month: 142 },
# info: {
# license: 'ISC',
# created: 2018-09-07T14:45:00.352Z,
# updated: 2022-04-30T19:18:42.984Z,
# version: '2.0.2',
# unpackedSize: 5196
# }
# }
# }
You can display all available commands and settings with following command.
esmj-size --help
FAQs
JavaScript Package Size Cost like bundlephobia or import-cost
We found that @esmj/size 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.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.