import-cost
import-cost.nvim
import-cost | import-cost.nvim | |
---|---|---|
3 | 3 | |
1,334 | 100 | |
0.4% | - | |
0.0 | 3.4 | |
about 1 month ago | 8 months ago | |
JavaScript | Lua | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
import-cost
-
import-cost.nvim: import costs finally to neovim!
I actually tried using treesitter and bundlephobia in my first approach before defaulting to the npm module.
- Import Cost and Extmarks - Seeking Help!
-
Good import cost plugin
coc-import-cost seem have been maintained better.
import-cost.nvim
-
Bot Testing
Sample repo: https://github.com/barrett-ruth/import-cost.nvim/
-
import-cost.nvim: import costs finally to neovim!
If you search a package on bundlephobia you get the size of the entire package (see here). However, the entire react module doesn't get bundled and shipped to the client - only what you use does. That's why the npm module, using webpack, can get you more accurate sizes. If you look at import-cost.nvim, the front preview displays this fact: different import statements yield different code bundle sizes (although the npm module doesn't subtract duplicate bundled code). In the screenshot different react imports are different sizes. Not the most perfect analysis tool, but it just gives you insight about what you're using (for example, I didn't expect useFormik to be 9x bigger than useRef).
What are some alternatives?
vim-import-cost - 🏋️♂️ Display the import size of the JavaScript packages in Vim!
dots - My personal dotfiles, scripts, and general program settings.
best - :trophy: Delightful Benchmarking & Performance Testing
blurhash-to-css - Convert a BlurHash to a CSS Object using TypeScript, Rust, and WebAssembly.
ivi - Lighweight Embeddable Web UI Library
sqip - "SQIP" (pronounced \skwɪb\ like the non-magical folk of magical descent) is a SVG-based LQIP technique.
ngx-admin - Customizable admin dashboard template based on Angular 10+
webperf-snippets - ⚡️ 💾 Web Performance Snippets
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.
Code-Server - VS Code in the browser