xkit-utils 2.0.0-alpha.0 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# xkit-utils
|
|
2
|
+
|
|
3
|
+
`xkit-utils` 是 X Kit 的通用工具包,提供 Web 开发中常用的无框架依赖工具。
|
|
4
|
+
|
|
5
|
+
## 特性
|
|
6
|
+
|
|
7
|
+
- 剪贴板、路径拼接、Record 转换等基础工具。
|
|
8
|
+
- 树结构构建与 `Forest` 管理工具。
|
|
9
|
+
- SSE 连接、SSE 数据块解析和 token 刷新管理。
|
|
10
|
+
- 简单的服务提供器 `ServiceProvider`。
|
|
11
|
+
|
|
12
|
+
## 使用
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import { buildTree, copyToClipboard, createSSEConnection } from 'xkit-utils'
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 开发
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pnpm --filter ./packages/utils build
|
|
22
|
+
pnpm --filter ./packages/utils test
|
|
23
|
+
```
|
|
24
|
+
|