@vvstream/common (0.1.3)
Published 2026-06-09 03:14:30 +08:00 by llbro
Installation
@vvstream:registry=npm install @vvstream/common@0.1.3"@vvstream/common": "0.1.3"About this package
@vvstream/common
VVS 公共 TypeScript/Bun 工具库,提供 JSON 规范化、HTTP、共享类型、OIDC、数字格式化、Node 加密和 Hash 工具。
命令
vp install
bun test
工具链
TypeScript 使用 6.x,并按 Bun 的 TS 6 要求显式配置 types: ["bun"]。packageManager 固定为 bun@1.3.12,所以 vp install 会委托给 Bun 安装依赖。
导出
@vvstream/common@vvstream/common/json@vvstream/common/number@vvstream/common/types@vvstream/common/http@vvstream/common/node/crypto@vvstream/common/node/hash
发布
包发布到 Forgejo npm registry:
NODE_AUTH_TOKEN=... npm publish --registry https://code.vvstream.im/api/packages/llbro/npm/
下游项目如需保持历史 import 名称,可使用 npm alias:
{
"dependencies": {
"vvs-common": "npm:@vvstream/common@0.1.0"
}
}
Dependencies
Dependencies
| ID | Version |
|---|---|
| jose | ^6.1.3 |
| ky | ^1.14.1 |
Development dependencies
| ID | Version |
|---|---|
| @types/bun | latest |
| typescript | ^6.0.3 |
| vite-plus | ^0.1.18 |