---
url: https://sugarat.top/weekly/2025-11-08.md
description: >-
  ① 🤫spoilerjs ② 🏆 TypeScript 跃升至 \#1 - GitHub 上最常用的语言 ③ 中国法定假日查询库 ④ type-flag
  - 类型化命令行参数解析 ⑤ Node v24 已经是最新的LTS 版本 ⑥ TypingSVG ⑦ 腾讯 TDesign 组件库的 uniapp 适配 ⑧
  Dayflow - 每日的电脑使用分析 ⑨ image-dimensions ⑩ Biome v2.3 ⑪ Vercel 支持 Bun 运行时 ⑫
  emoji-regex
---

# 视野修炼第126期 | TypeScript #1

欢迎来到第 126 期的【视野修炼 - 技术周刊】，下面是本期的精选内容简介

\[\[toc]]

养了一段时间身体，又断更了 2 月 😄。

## 🔥强烈推荐

### [1. 🤫spoilerjs](https://github.com/shajidhasan/spoilerjs)

一个框架无关的 Web 组件，用于创建带有粒子动画效果的隐藏文字内容。

```html
<h1>
  Beautiful
  <spoiler-span>
    spoiler effects
  </spoiler-span>|
</h1>
```

![](https://cdn.upyun.sugarat.top/mdImg/sugar/76d461b5798f9b9b30c07f4dfbcf10fb)

⭐️！

### [2. 🏆 TypeScript 跃升至 #1](https://github.blog/news-insights/octoverse/octoverse-a-new-developer-joins-github-every-second-as-ai-leads-typescript-to-1/) - GitHub 上最常用的语言

2025 年 8 月，TypeScript 超越了 Python 和 JavaScript，TypeScript 现在是 GitHub 上最常用的语言 。

### [3. 中国法定假日查询库](https://chinese-days.yaavi.me/)

![](https://cdn.upyun.sugarat.top/mdImg/sugar/d4097792e65ed137c646a9757f925530)

![](https://cdn.upyun.sugarat.top/mdImg/sugar/49d7384f69b084b5eca12682cd92e634)

**做复杂日历组件必备！收藏+1。**

## 🔧开源工具&技术资讯

### [4. type-flag](https://github.com/privatenumber/type-flag) - 类型化命令行参数解析

```sh
my-script --name John --age 20
```

```ts
import { typeFlag } from 'type-flag'

const parsed = typeFlag({
  name: String,
  age: {
    type: Number,
    alias: 'a'
  }
})

console.log(parsed.flags.name) // 'John'
console.log(parsed.flags.age) // 20
```

### [5. Node v24 已经是最新的LTS 版本](https://nodejs.org/en/blog/migrations/v22-to-v24)

![](https://cdn.upyun.sugarat.top/mdImg/sugar/ca7d187bd2565bab74b7c3a092617e23)

### [6. TypingSVG](https://typingsvg.vercel.app/)

生成由 SVG 驱动的打字动画。

![](https://cdn.upyun.sugarat.top/mdImg/sugar/87904033365bb5b6aaaf3bed34a26d4a)

[![Typing SVG](https://typingsvg.vercel.app/api/svg?lines=%5B%7B%22text%22%3A%22Hello%2C+World%21%22%7D%2C%7B%22text%22%3A%22And+Emojis%21+%F0%9F%98%80%F0%9F%9A%80%22%7D%5D)](https://github.com/whiteSHADOW1234/TypingSVG)

### [7. 腾讯 TDesign 组件库的 uniapp 适配](https://github.com/novlan1/tdesign-uniapp)

![](https://cdn.upyun.sugarat.top/mdImg/sugar/5845b94e68b0493de9a1963f9d8de2b6)

先收藏，uni-app 开发小程序可以考虑考虑。

### [8. Dayflow](https://github.com/JerryZLiu/Dayflow) - 每日的电脑使用分析

> 开源的 macOS 桌面应用，可以生成电脑屏幕一天的时间占用。它每秒截一次屏，然后交给 AI 分析，生成你一天活动的时间线。

本地使用阿里开源的 `qwen` 模型。

![](https://cdn.upyun.sugarat.top/mdImg/sugar/f194c3b373233f92de28bfe2400659ff)

支持以视频的形式回顾屏幕历史。

windows 上印象也也有类似的工具（待我翻翻吃灰的收藏夹 再贴上来）。

### [9. image-dimensions](https://github.com/sindresorhus/image-dimensions)

获取图片的尺寸信息，支持现代的js运行环境（浏览器、Node.js、Bun、Deno等）

```js
import { imageDimensionsFromStream } from 'image-dimensions'

// example1
const url = 'https://sindresorhus.com/unicorn'

const { body } = await fetch(url)

console.log(await imageDimensionsFromStream(body))

// example2
const data = getImage()

console.log(imageDimensionsFromData(data))
// => {width: 1920, height: 1080, type: 'png'}
```

### [10. Biome v2.3](https://biomejs.dev/blog/biome-v2-3/)

> Biome 是一个适用于 JavaScript、TypeScript、JSX等快速格式化工具，与 Prettier 有高达 97% 的兼容覆盖率，同时也是一个高性能的 linter。

现在支持 Vue、Svelte 和 Astro lint和格式化了！

### [11. Vercel 支持 Bun 运行时](https://bun.com/blog/vercel-adds-native-bun-support)

![](https://cdn.upyun.sugarat.top/mdImg/sugar/cf6d0dc304a4728ac97c5875c629ec74)

### [12. emoji-regex](https://github.com/mathiasbynens/emoji-regex)

提供匹配表情符号的正则

```js
const emojiRegex = require('emoji-regex')

const regex = emojiRegex()

for (const match of text.matchAll(regex)) {
  const emoji = match[0]
}
```

⭐️！

## ⭐️强力推荐关注

> 周刊部分内容来源如下渠道，推荐大家关注。

* [阮一峰: 科技爱好者周刊](https://www.ruanyifeng.com/blog/archives.html) - 记录每周值得分享的科技内容，周五发布
* [值得一读技术博客](https://daily-blog.chlinlearn.top/) - 每天进步一点点，每天分享有料的技术文章！
* [FRE123 技术周刊精选](https://www.fre321.com/weekly) - 技术周刊精选推荐信息流
