Why is your elm.js file so big? Is Elm's dead code elimination on a particular function not working as you expected? What libraries cost your users bandwidth? Analyse your elm.js file size with this tool.
Go to file
Petre Damoc 2ce4150553
Merge pull request #4 from pdamoc/summary
Add support for summary
2022-08-16 19:46:45 +03:00
bin Add support for summary 2022-08-15 19:10:11 +03:00
src Add support for summary 2022-08-15 19:10:11 +03:00
.gitignore 🎉 Initial Commit 2020-04-03 23:22:32 +02:00
LICENSE 📚 Add LICENSE 2022-08-15 16:39:55 +02:00
package-lock.json Add support for summary 2022-08-15 19:10:11 +03:00
package.json Add support for summary 2022-08-15 19:10:11 +03:00
pnpm-lock.yaml Use commander to build a minimal CLI 2022-05-10 19:11:40 +02:00
README.md Fix Old name in Readme 2022-08-15 19:22:00 +03:00
tsconfig.json Add support for summary 2022-08-15 19:10:11 +03:00
yarn.lock Add support for summary 2022-08-15 19:10:11 +03:00

elmjs-inspect

Build it

npm i
npm run build
npm link

Run it

Size contribution of each function

elmjs-inspect elm.js

Size contribution by modules

elmjs-inspect --summary=module elm.js

Size contribution by package

elmjs-inspect --summary=package elm.js

Size contribution of only the project's modules

elmjs-inspect --summary=project elm.js

TODO

  • Allow giving .js file by options or otherwise by file input (inquirer.js?)
  • Show results by package/module/file level
  • NPM Publish