{"id":15356947,"url":"https://github.com/antfu/export-size","last_synced_at":"2025-04-05T21:05:40.756Z","repository":{"id":41451623,"uuid":"301697117","full_name":"antfu/export-size","owner":"antfu","description":"Analysis bundle cost for each export of a package","archived":false,"fork":false,"pushed_at":"2023-10-19T20:05:07.000Z","size":337,"stargazers_count":184,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-29T20:07:17.452Z","etag":null,"topics":["bundle-size","cli","esm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antfu.png","metadata":{"funding":{"github":["antfu"]},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-10-06T10:59:26.000Z","updated_at":"2025-03-25T16:26:27.000Z","dependencies_parsed_at":"2024-02-09T02:10:38.886Z","dependency_job_id":null,"html_url":"https://github.com/antfu/export-size","commit_stats":{"total_commits":57,"total_committers":4,"mean_commits":14.25,"dds":0.08771929824561409,"last_synced_commit":"5ff2a33fb066672be51307fc6c3bea829ced3754"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fexport-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fexport-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fexport-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fexport-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antfu","download_url":"https://codeload.github.com/antfu/export-size/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399872,"owners_count":20932876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle-size","cli","esm"],"created_at":"2024-10-01T12:31:07.125Z","updated_at":"2025-04-05T21:05:40.738Z","avatar_url":"https://github.com/antfu.png","language":"TypeScript","funding_links":["https://github.com/sponsors/antfu"],"categories":["TypeScript"],"sub_categories":[],"readme":"# export-size\n\nAnalysis bundle cost for each export of an ESM package\n\n### Install\n\n```bash\nnpx export-size [package-name]\n```\n\n### Usage\n\nCalculate local package\n\n```bash\nnpx export-size .\n```\n\nCalculate npm package\n\n```bash\nnpx export-size @vueuse/core\n```\n\nMore options\n\n```bash\nnpx export-size --help\n```\n\nExample output\n\n```\n@vueuse/core v4.0.0-beta.20\nsha 8ef798bf7d22f9cca7681c3bb717af59e6b1685d\n\n┌───────────────────────────┬──────────┐\n│ export                    │ min+gzip │\n│                           │          │\n│ useWebWorkerFn            │   1.1 KB │\n│ useTransition             │   1007 B │\n│ useParallax               │    987 B │\n│ asyncComputed             │    924 B │\n│ useShare                  │    817 B │\n│ useIdle                   │    651 B │\n│ useSessionStorage         │    604 B │\n│ useLocalStorage           │    600 B │\n│ useStoragePlain           │    597 B │\n│ useStorage                │    586 B │\n│ useDeviceMotion           │    559 B │\n│ useMouseInElement         │    542 B │\n│ useElementVisibility      │    503 B │\n│ useDevicePixelRatio       │    489 B │\n│ onStartTyping             │    471 B │\n│ useEventSource            │    471 B │\n│ useOnline                 │    467 B │\n│ useNetwork                │    455 B │\n│ useRefHistory             │    451 B │\n│ useGeolocation            │    408 B │\n│ useBrowserLocation        │    405 B │\n│ useMouse                  │    403 B │\n│ useBattery                │    395 B │\n│ useAsyncState             │    367 B │\n│ usePermission             │    365 B │\n│ useWindowSize             │    347 B │\n│ useWindowScroll           │    344 B │\n│ useClipboard              │    337 B │\n│ usePreferredColorScheme   │    333 B │\n│ useWebSocket              │    329 B │\n│ useDeviceOrientation      │    324 B │\n│ useThrottle               │    318 B │\n│ usePageLeave              │    300 B │\n│ useDocumentVisibility     │    291 B │\n│ usePreferredDark          │    285 B │\n│ useCssVar                 │    284 B │\n│ usePreferredLanguages     │    282 B │\n│ useTimeoutFn              │    282 B │\n│ useWebWorker              │    277 B │\n│ useDeviceLight            │    273 B │\n│ useInterval               │    273 B │\n│ useDebounce               │    262 B │\n│ useThrottleFn             │    258 B │\n│ useMediaQuery             │    247 B │\n│ useRaf                    │    244 B │\n│ useTitle                  │    243 B │\n│ useIntersectionObserver   │    239 B │\n│ useTimeout                │    227 B │\n│ useRafFn                  │    224 B │\n│ useEventListener          │    222 B │\n│ useNow                    │    207 B │\n│ useDebounceFn             │    204 B │\n│ useFullscreen             │    201 B │\n│ useIntervalFn             │    199 B │\n│ createGlobalState         │    197 B │\n│ useResizeObserver         │    195 B │\n│ useMutationObserver       │    190 B │\n│ useCounter                │    183 B │\n│ explicitComputed          │    146 B │\n│ isWindow                  │    144 B │\n│ tryOnMounted              │    143 B │\n│ assert                    │    137 B │\n│ isObject                  │    122 B │\n│ DEVICE_PIXEL_RATIO_SCALES │    109 B │\n│ tryOnUnmounted            │    107 B │\n│ clamp                     │     98 B │\n│ isBoolean                 │     92 B │\n│ isNumber                  │     91 B │\n│ isString                  │     91 B │\n│ timestamp                 │     87 B │\n│ isFunction                │     86 B │\n│ isDef                     │     84 B │\n│ isClient                  │     83 B │\n│ now                       │     79 B │\n│ noop                      │     65 B │\n└───────────────────────────┴──────────┘\n```\n\n## TODO\n\n- [ ] Support JSON output\n- [ ] Support custom output path\n\n## Sponsors\n\nThis project is part of my \u003ca href='https://github.com/antfu-sponsors'\u003eSponsor Program\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu%2Fexport-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantfu%2Fexport-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu%2Fexport-size/lists"}