短评 · ·

X 归档 2022-08-07

3 条动态 · 图 3 · 视频 1
My weekend hacking has resulted in another tiny but mighty tool... Introducing `ultrahtml`! 👑

Bring the MDX `components` pattern to any HTML. It works in any JS environment and has a tiny 1.75kB footprint with zero dependencies.
https://github.com/natemoo-re/ultrahtml
周末鼓捣又产出一个微型但强力的工具……隆重介绍 `ultrahtml`!👑

把 MDX 的 `components` 模式带给任意 HTML。它可以在任何 JS 环境中运行,体积仅 1.75kB,零依赖。
@n_moore 的配图 1/1
Here's another interactive UI I made.

The gradient bloops are moving too!
这是我做的另一个交互式 UI。

渐变小泡泡也会动哦!
@phry20:41原推文
This one is for library authors: frustrated how TS versions handle your package slightly differently, but don't want to ship a full copy of your types with TypesVersions? Now you can adjust your types depending on the TS Version!
Just published as https://www.npmjs.com/package/@phryneas/ts-version
这一条给库作者们:是否苦恼于不同 TS 版本对你的包处理起来略有差异,但又不想用 TypesVersions 附上整套类型副本?现在你可以根据 TS 版本调整你的类型了!
刚刚发布为 https://www.npmjs.com/package/@phryneas/ts-version
@phry 的配图 1/2 @phry 的配图 2/2