koishi-plugin-codec-tools 1.0.0

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/lib/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Context, Schema } from 'koishi';
2
+ export declare const name = "codec-tools";
3
+ export interface Config {
4
+ }
5
+ export declare const Config: Schema<Config>;
6
+ export declare function apply(ctx: Context): void;
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "koishi-plugin-codec-tools",
3
+ "description": "A Koishi plugin for URL/Base64/Unicode encoding/decoding and barcode/qrcode decoding from images",
4
+ "version": "1.0.0",
5
+ "main": "lib/index.js",
6
+ "typings": "lib/index.d.ts",
7
+ "files": [
8
+ "lib",
9
+ "dist"
10
+ ],
11
+ "license": "MIT",
12
+ "scripts": {
13
+ "build": "atsc -b"
14
+ },
15
+ "keywords": [
16
+ "chatbot",
17
+ "koishi",
18
+ "plugin",
19
+ "codec",
20
+ "url",
21
+ "base64",
22
+ "unicode",
23
+ "qrcode",
24
+ "barcode"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/Minecraft-1314/koishi-plugin-codec-tools.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/Minecraft-1314/koishi-plugin-codec-tools/issues"
32
+ },
33
+ "homepage": "https://github.com/Minecraft-1314/koishi-plugin-codec-tools#readme",
34
+ "devDependencies": {},
35
+ "dependencies": {
36
+ "@zxing/library": "^0.21.3",
37
+ "jimp": "^0.16.13",
38
+ "jsqr": "^1.4.0"
39
+ },
40
+ "peerDependencies": {
41
+ "koishi": "^4.18.7"
42
+ }
43
+ }
package/readme.md ADDED
@@ -0,0 +1,76 @@
1
+ # koishi-plugin-codec-tools
2
+
3
+ ## 项目介绍 (Project Introduction)
4
+
5
+ ### 中文
6
+ 这是一个为 Koishi 聊天机器人框架开发的编解码工具插件,基于 Node.js 构建。该插件具有以下特点:
7
+ - 支持 URL 编码/解码
8
+ - 支持 Base64 编码/解码
9
+ - 支持 Unicode 编码/解码
10
+ - 支持从图片中解析二维码/条形码内容
11
+
12
+ ### English
13
+ This is a codec tool plugin developed for the Koishi chatbot framework, built on Node.js. The plugin features:
14
+ - Support for URL encoding/decoding
15
+ - Support for Base64 encoding/decoding
16
+ - Support for Unicode encoding/decoding
17
+ - Support for parsing QR code/barcode content from images
18
+
19
+ ## 使用说明 (Usage)
20
+
21
+ ### 中文
22
+ | 命令 (Command) | 功能说明 (Description) |
23
+ | --- | --- |
24
+ | url-encode <文本> | 对指定文本进行 URL 编码 |
25
+ | url-decode <文本> | 对指定 URL 编码文本进行解码 |
26
+ | base64-encode <文本> | 对指定文本进行 Base64 编码 |
27
+ | base64-decode <文本> | 对指定 Base64 编码文本进行解码 |
28
+ | unicode-encode <文本> | 对指定文本进行 Unicode 编码 |
29
+ | unicode-decode <文本> | 对指定 Unicode 编码文本进行解码 |
30
+ | decode-code | 解析附带图片中的二维码 / 条形码内容 |
31
+
32
+ ### English
33
+ | Command | Description |
34
+ | --- | --- |
35
+ | url-encode <text> | Encode the specified text with URL encoding |
36
+ | url-decode <text> | Decode the specified URL-encoded text |
37
+ | base64-encode <text> | Encode the specified text with Base64 encoding |
38
+ | base64-decode <text> | Decode the specified Base64-encoded text |
39
+ | unicode-encode <text> | Encode the specified text with Unicode encoding |
40
+ | unicode-decode <text> | Decode the specified Unicode-encoded text |
41
+ | decode-code | Parse QR code/barcode content from the attached image |
42
+
43
+ ## 依赖说明 (Dependencies)
44
+
45
+ ### 中文
46
+ 该插件运行依赖以下第三方库:
47
+ - jimp:图片处理
48
+ - jsqr:二维码解析
49
+ - @zxing/library:条形码解析
50
+
51
+ ### English
52
+ This plugin depends on the following third-party libraries to run:
53
+ - jimp: Image processing
54
+ - jsqr: QR code parsing
55
+ - @zxing/library: Barcode parsing
56
+
57
+ ## 项目贡献者 (Contributors)
58
+ | 贡献者 (Contributor) | 贡献内容 (Contribution) |
59
+ | --- | --- |
60
+ | Minecraft-1314 | 插件完整开发 (Complete plugin development) |
61
+ | (欢迎提交 PR 加入贡献者列表) | (Welcome to submit PR to join the contributor list) |
62
+
63
+ ## 许可协议 (License)
64
+ 本项目采用 MIT 许可证,详情参见 LICENSE 文件。
65
+
66
+ This project is licensed under the MIT License, see the LICENSE file for details.
67
+
68
+ ## 支持我们 (Support Us)
69
+ 如果这个项目对您有帮助,欢迎点亮右上角的 Star ⭐ 支持我们,这将是对所有贡献者最大的鼓励!
70
+
71
+ If this project is helpful to you, please feel free to star it in the upper right corner ⭐ to support us, which will be the greatest encouragement to all contributors!
72
+
73
+ ## 问题反馈 (Feedback)
74
+ 如有问题或建议,可通过 Issues 提交反馈。
75
+
76
+ If you have any questions or suggestions, please submit feedback via Issues.