-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
https://github.com/sxzz/obug is a newly developed project, forked from debug, the most popular npm library for debugging.
obug addresses several issues:
- Built-in TypeScript support—no need to install
@types/debug(More accurate) - Zero dependencies, achieved by dropping support for legacy browsers and older Node.js versions
- Optimized for modern environments
- Supports ES2015+ browsers
- Compatible with Node.js 18 and above
- Pure ESM
- Extremely small footprint
- Unpacked size: 21 KB vs 42 KB (including dependencies)
- Production bundle size for browsers: only 3.22 kB, gzip: 1.5kB.
- Uses trusted publishing (although some consider this meaningless, this is simply to inform those who care about it; related discussions are outside the scope of this post)
The only concern is that obug is very new, and since all dependencies currently use debug, you may end up with both debug and obug in your project. However, I believe this is a worthwhile step to try.
Additionally, if the debug project is willing to merge obug back into debug, I would be more than happy!
Progress
- tsdown
- some of my projects (unplugins)
- Vite: perf(deps): replace debug with obug vitejs/vite#21107
- Vite node: perf: replace debug with obug antfu-collective/vite-node#13
- NAPI-RS: perf: replace debug with obug napi-rs/napi-rs#3019
- VitePress: perf: replace debug with obug vuejs/vitepress#5030
- Slidev: perf: replace debug with obug slidevjs/slidev#2360
- vite-plugin-vue: perf: replace debug with obug vitejs/vite-plugin-vue#705
- Vitest: perf: replace debug with obug vitest-dev/vitest#9057
- vite-plugin-svelte: perf: replace debug with obug sveltejs/vite-plugin-svelte#1241
webdiscus
Metadata
Metadata
Assignees
Labels
No labels