All Projects → antfu → export-size

antfu / export-size

Licence: MIT license
Analysis bundle cost for each export of a package

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to export-size

tailwind-layouts
Collection of Tailwind Layouts
Stars: ✭ 53 (-41.11%)
Mutual labels:  esm
next-size
Next.js plugin to print browser assets sizes
Stars: ✭ 39 (-56.67%)
Mutual labels:  bundle-size
webpacker
🔸 Webpack configuration manager
Stars: ✭ 18 (-80%)
Mutual labels:  esm
loaders
ECMAScript Modules Loaders
Stars: ✭ 65 (-27.78%)
Mutual labels:  esm
nanobundle
Yet another build tool for libraries, powered by esbuild
Stars: ✭ 45 (-50%)
Mutual labels:  esm
oletus
Minimal ECMAScript Module test runner
Stars: ✭ 43 (-52.22%)
Mutual labels:  esm
resolve-typescript-plugin
webpack plugin to resolve TypeScript files when importing with js file extension in ESM projects
Stars: ✭ 39 (-56.67%)
Mutual labels:  esm
npm-es-modules
Breakdown of 7 different ways to use ES modules with npm today.
Stars: ✭ 67 (-25.56%)
Mutual labels:  esm
tape-es
ESM-compatible Tape.js test runner
Stars: ✭ 24 (-73.33%)
Mutual labels:  esm
xv
❌ ✔️ zero-config test runner for simple projects
Stars: ✭ 588 (+553.33%)
Mutual labels:  esm
nsplayer
A web player with shakaplayer & hls.js both supported
Stars: ✭ 23 (-74.44%)
Mutual labels:  esm
unpack
Create Web apps without a bundler
Stars: ✭ 39 (-56.67%)
Mutual labels:  esm
marky
A modular and extensible ESM and Deno Markdown parser.
Stars: ✭ 16 (-82.22%)
Mutual labels:  esm
motion-hooks
A simple Hooks wrapper over Motion One, An animation library, built on the Web Animations API for the smallest filesize and the fastest performance.
Stars: ✭ 93 (+3.33%)
Mutual labels:  esm
anzip
Simple async unzip library for Node.js
Stars: ✭ 61 (-32.22%)
Mutual labels:  esm
js-bundle-size
Cross-browser extension adding JS bundle size data to npm and github pages
Stars: ✭ 31 (-65.56%)
Mutual labels:  bundle-size
nodekit
[Moved to Codeberg] A Small Web server.
Stars: ✭ 68 (-24.44%)
Mutual labels:  esm
mock-spy-module-import
JavaScript import/require module testing do's and don'ts with Jest
Stars: ✭ 40 (-55.56%)
Mutual labels:  esm
create-nodejs-ts
Starter Project for Node.js With TypeScript.
Stars: ✭ 34 (-62.22%)
Mutual labels:  esm
extract-files
A function to recursively extract files and their object paths within a value, replacing them with null in a deep clone without mutating the original value. FileList instances are treated as File instance arrays. Files are typically File and Blob instances.
Stars: ✭ 48 (-46.67%)
Mutual labels:  esm

export-size

Analysis bundle cost for each export of an ESM package

Install

npx export-size [package-name]

Usage

Calculate local package

npx export-size .

Calculate npm package

npx export-size @vueuse/core

More options

npx export-size --help

Example output

@vueuse/core v4.0.0-beta.20
sha 8ef798bf7d22f9cca7681c3bb717af59e6b1685d

┌───────────────────────────┬──────────┐
 export                     min+gzip 
                                     
 useWebWorkerFn               1.1 KB 
 useTransition                1007 B 
 useParallax                   987 B 
 asyncComputed                 924 B 
 useShare                      817 B 
 useIdle                       651 B 
 useSessionStorage             604 B 
 useLocalStorage               600 B 
 useStoragePlain               597 B 
 useStorage                    586 B 
 useDeviceMotion               559 B 
 useMouseInElement             542 B 
 useElementVisibility          503 B 
 useDevicePixelRatio           489 B 
 onStartTyping                 471 B 
 useEventSource                471 B 
 useOnline                     467 B 
 useNetwork                    455 B 
 useRefHistory                 451 B 
 useGeolocation                408 B 
 useBrowserLocation            405 B 
 useMouse                      403 B 
 useBattery                    395 B 
 useAsyncState                 367 B 
 usePermission                 365 B 
 useWindowSize                 347 B 
 useWindowScroll               344 B 
 useClipboard                  337 B 
 usePreferredColorScheme       333 B 
 useWebSocket                  329 B 
 useDeviceOrientation          324 B 
 useThrottle                   318 B 
 usePageLeave                  300 B 
 useDocumentVisibility         291 B 
 usePreferredDark              285 B 
 useCssVar                     284 B 
 usePreferredLanguages         282 B 
 useTimeoutFn                  282 B 
 useWebWorker                  277 B 
 useDeviceLight                273 B 
 useInterval                   273 B 
 useDebounce                   262 B 
 useThrottleFn                 258 B 
 useMediaQuery                 247 B 
 useRaf                        244 B 
 useTitle                      243 B 
 useIntersectionObserver       239 B 
 useTimeout                    227 B 
 useRafFn                      224 B 
 useEventListener              222 B 
 useNow                        207 B 
 useDebounceFn                 204 B 
 useFullscreen                 201 B 
 useIntervalFn                 199 B 
 createGlobalState             197 B 
 useResizeObserver             195 B 
 useMutationObserver           190 B 
 useCounter                    183 B 
 explicitComputed              146 B 
 isWindow                      144 B 
 tryOnMounted                  143 B 
 assert                        137 B 
 isObject                      122 B 
 DEVICE_PIXEL_RATIO_SCALES     109 B 
 tryOnUnmounted                107 B 
 clamp                          98 B 
 isBoolean                      92 B 
 isNumber                       91 B 
 isString                       91 B 
 timestamp                      87 B 
 isFunction                     86 B 
 isDef                          84 B 
 isClient                       83 B 
 now                            79 B 
 noop                           65 B 
└───────────────────────────┴──────────┘

TODO

  • Support local packages
  • Support JSON output
  • ESBuild / Rollup
  • Support custom output path

Sponsors

This project is part of my Sponsor Program

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].