Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matheus23/elmjs-inspect
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.
https://github.com/matheus23/elmjs-inspect
Last synced: 18 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/matheus23/elmjs-inspect
- Owner: matheus23
- License: mit
- Created: 2020-04-03T21:23:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-12T18:03:58.000Z (about 2 years ago)
- Last Synced: 2024-10-08T09:27:32.978Z (28 days ago)
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 23
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elmjs-inspect
## Build it
```sh
npm i
npm run build
npm link
```## Run it
Size contribution of each function
```sh
$ elmjs-inspect elm.js
7.422%: author/project: Main.update
2.105%: author/project: Main.interactionEvents
1.514%: author/project: Component.kindInfo
1.332%: Kernel Code: _VirtualDom_diffKeyedKids
# [...]
0.008%: Kernel Code: _Scheduler_guid
0.007%: Kernel Code: _Basics_e
0.007%: Kernel Code: _Debugger_document
0.007%: Kernel Code: _Platform_preload
0.007%: Kernel Code: _Debugger_element
Range sum: 231878 total: 240946, analyzed 96.237%
```Size contribution by modules
```sh
$ elmjs-inspect --summary=module elm.js
33.004%: Kernel Code
17.082%: author/project: Main
6.995%: author/project: View
6.093%: elm/core: Dict
# [...]
0.034%: elm/browser: Browser.Dom
0.032%: elm/core: Debug
0.021%: elm/core: Platform
0.019%: elm/core: Platform.Sub
0.017%: elm/core: Process
Range sum: 231878 total: 240946, analyzed 96.237%
```Size contribution by package
```sh
$ elmjs-inspect --summary=package elm.js
37.601%: author/project
33.004%: Kernel Code
12.632%: elm/core
5.022%: elm_community/typed_svg
2.360%: mpizenberg/elm_pointer_events
1.872%: elm/json
1.322%: elm/url
0.649%: elm/html
0.572%: elm_community/list_extra
0.557%: elm/virtual_dom
0.487%: avh4/elm_color
0.120%: elm/browser
0.039%: elm/svg
Range sum: 231878 total: 240946, analyzed 96.237%
```Size contribution of only the project's modules
```sh
$ elmjs-inspect --summary=project elm.js
58.636%: Dependencies
17.082%: Main
6.995%: View
3.884%: Component
3.668%: Canvas
2.184%: Drag
1.404%: Event
1.105%: Pos
0.674%: Ports
0.326%: Actionbar
0.278%: Vec2
Range sum: 231878 total: 240946, analyzed 96.237%
```