添加TypeScript实现的API签名工具,包括项目配置、命令行工具、核心库及相关文档,支持多种签名算法和环境变量配置。

This commit is contained in:
SF-bytebytebrew
2025-05-21 14:19:07 +08:00
parent b92d406bac
commit 07b9de3eec
6 changed files with 3548 additions and 0 deletions

36
typescript/package.json Normal file
View File

@@ -0,0 +1,36 @@
{
"name": "api-signer",
"version": "1.0.0",
"description": "API签名工具 - TypeScript实现",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"start": "ts-node src/cli.ts",
"test": "jest",
"prepublish": "pnpm run build"
},
"keywords": [
"api",
"signature",
"authentication",
"security"
],
"author": "Sound Force",
"license": "MIT",
"dependencies": {
"crypto-js": "^4.1.1",
"dotenv": "^16.0.3",
"minimist": "^1.2.8"
},
"devDependencies": {
"@types/crypto-js": "^4.1.1",
"@types/jest": "^29.5.0",
"@types/minimist": "^1.2.2",
"@types/node": "^22.15.18",
"jest": "^29.5.0",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.0.2"
}
}