feat: v1.0.0 收尾 — 五芯片 DTR/RTS、类型声明、示例、CI
test / test (push) Canceled after 0s

- CP210x / FTDI / PL2303 补齐 setSignals()(编码与各自初始化序列一致)
- 新增 index.d.ts(TypeScript 类型声明)、examples/minimal.html(最小接入示例)
- 新增 .gitea/workflows/ci.yml(push 时跑离线单测)、.gitattributes(强制 LF)、CHANGELOG.md
- package.json 补 repository / homepage / bugs / types / engines
- 单测 16 项全部通过:node test/driver.test.mjs
This commit is contained in:
2026-09-23 00:41:29 +08:00
parent f02c0b06b8
commit 6c5e647c8a
9 changed files with 271 additions and 10 deletions
+9 -10
View File
@@ -1,27 +1,26 @@
{
"name": "ch340-webusb",
"version": "1.0.0",
"description": "Browser driver for CH340/CH341 (and CDC-ACM/CP210x/FTDI/PL2303) USB-serial chips over WebUSB — works on Android Chrome, plus a navigator.serial shim.",
"description": "纯前端 CH340/CH341 USB 串口驱动:安卓 Chrome 走 WebUSB 零驱动,桌面走 Web Serial。Browser-only WebUSB driver for CH340/CH341 (plus CDC-ACM/CP210x/FTDI/PL2303) with a navigator.serial shim.",
"main": "ch340-webusb.js",
"types": "index.d.ts",
"files": [
"ch340-webusb.js",
"ch340-serial-shim.js",
"ch340-test.html",
"index.d.ts",
"docs",
"examples",
"README.md",
"LICENSE"
],
"scripts": {
"test": "node test/driver.test.mjs"
},
"keywords": [
"webusb",
"ch340",
"ch341",
"serial",
"android",
"web-serial",
"usb-serial"
],
"keywords": ["webusb", "web-serial", "ch340", "ch341", "usb-serial", "android", "serial", "otg", "cp210x", "ftdi", "pl2303"],
"repository": { "type": "git", "url": "git+https://gitea.truestudio.cn/jiangchen/ch340-webusb.git" },
"homepage": "https://gitea.truestudio.cn/jiangchen/ch340-webusb",
"bugs": { "url": "https://gitea.truestudio.cn/jiangchen/ch340-webusb/issues" },
"engines": { "node": ">=18" },
"license": "MIT"
}