poon-choi 0.0.5 → 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/.output/nitro.json +1 -1
- package/.output/server/index.mjs +11 -11
- package/README.md +1 -0
- package/README.zh.md +1 -0
- package/bin/cli.ts +34 -7
- package/package.json +2 -2
package/.output/nitro.json
CHANGED
package/.output/server/index.mjs
CHANGED
|
@@ -13,35 +13,35 @@ var public_assets_data_default = {
|
|
|
13
13
|
"/assets/about-D4e6L2RX.js": {
|
|
14
14
|
"type": "text/javascript; charset=utf-8",
|
|
15
15
|
"etag": "\"2d3-K/Mk8Xwun59XEuZOXW4FszGlmCo\"",
|
|
16
|
-
"mtime": "2026-11-16T07:
|
|
16
|
+
"mtime": "2026-11-16T07:39:53.238Z",
|
|
17
17
|
"size": 723,
|
|
18
18
|
"path": "../public/assets/about-D4e6L2RX.js"
|
|
19
19
|
},
|
|
20
|
+
"/assets/routes-BgrRSMVP.js": {
|
|
21
|
+
"type": "text/javascript; charset=utf-8",
|
|
22
|
+
"etag": "\"9cab-F1HqYvl8HqsqA3IdMdtqy0sjW/4\"",
|
|
23
|
+
"mtime": "2026-11-16T07:39:53.238Z",
|
|
24
|
+
"size": 40107,
|
|
25
|
+
"path": "../public/assets/routes-BgrRSMVP.js"
|
|
26
|
+
},
|
|
20
27
|
"/assets/index-B6P0kA2f.css": {
|
|
21
28
|
"type": "text/css; charset=utf-8",
|
|
22
29
|
"etag": "\"ebc-+E2ER+la0niWYHOeTJb/km1hZ3g\"",
|
|
23
|
-
"mtime": "2026-11-16T07:
|
|
30
|
+
"mtime": "2026-11-16T07:39:53.239Z",
|
|
24
31
|
"size": 3772,
|
|
25
32
|
"path": "../public/assets/index-B6P0kA2f.css"
|
|
26
33
|
},
|
|
27
34
|
"/assets/styles-DqQrEVt_.css": {
|
|
28
35
|
"type": "text/css; charset=utf-8",
|
|
29
36
|
"etag": "\"65ac-bZPVDa9/uqOQex/J0MEvk6xdijI\"",
|
|
30
|
-
"mtime": "2026-11-16T07:
|
|
37
|
+
"mtime": "2026-11-16T07:39:53.239Z",
|
|
31
38
|
"size": 26028,
|
|
32
39
|
"path": "../public/assets/styles-DqQrEVt_.css"
|
|
33
40
|
},
|
|
34
|
-
"/assets/routes-BgrRSMVP.js": {
|
|
35
|
-
"type": "text/javascript; charset=utf-8",
|
|
36
|
-
"etag": "\"9cab-F1HqYvl8HqsqA3IdMdtqy0sjW/4\"",
|
|
37
|
-
"mtime": "2026-11-16T07:10:57.599Z",
|
|
38
|
-
"size": 40107,
|
|
39
|
-
"path": "../public/assets/routes-BgrRSMVP.js"
|
|
40
|
-
},
|
|
41
41
|
"/assets/index-CdiJXXIG.js": {
|
|
42
42
|
"type": "text/javascript; charset=utf-8",
|
|
43
43
|
"etag": "\"54f38-+c8k8UEQVPFuHY4Mod+ogEthzBI\"",
|
|
44
|
-
"mtime": "2026-11-16T07:
|
|
44
|
+
"mtime": "2026-11-16T07:39:53.238Z",
|
|
45
45
|
"size": 347960,
|
|
46
46
|
"path": "../public/assets/index-CdiJXXIG.js"
|
|
47
47
|
}
|
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@ English | [中文](./README.zh.md)
|
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/poon-choi)
|
|
12
12
|
[](https://www.npmjs.com/package/poon-choi)
|
|
13
|
+
[](https://www.npmjs.com/package/poon-choi?activeTab=dependencies)
|
|
13
14
|
|
|
14
15
|
**poon-choi** (盆菜) is a Cantonese dish where many ingredients are stacked in one basin and shared from the top down. This tool does the same for images: drop in 1–6 pictures, and it plates them into a single **2.35:1 WeChat cover (900×383)**, plus a **1:1 thumbnail (383×383)**.
|
|
15
16
|
|
package/README.zh.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/poon-choi)
|
|
12
12
|
[](https://www.npmjs.com/package/poon-choi)
|
|
13
|
+
[](https://www.npmjs.com/package/poon-choi?activeTab=dependencies)
|
|
13
14
|
|
|
14
15
|
**poon-choi(盆菜)** 是一道粤菜,多种食材码在同一个盆里,由上至下享用。这个工具也是同理:放入 1–6 张图片,它会自动拼出一张 **2.35:1 的微信封面(900×383)**,同时生成一张 **1:1 的缩略图(383×383)**。
|
|
15
16
|
|
package/bin/cli.ts
CHANGED
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
// vite dev --port 3000
|
|
4
4
|
|
|
5
5
|
import { spawn } from 'node:child_process';
|
|
6
|
-
import { parseArgs } from 'node:util';
|
|
7
|
-
import
|
|
6
|
+
import { parseArgs, styleText } from 'node:util';
|
|
7
|
+
import pkg from '../package.json' with { type: 'json' };
|
|
8
|
+
|
|
9
|
+
// console.log('pkg:', pkg);
|
|
10
|
+
|
|
11
|
+
const { version, name, description } = pkg;
|
|
8
12
|
|
|
9
13
|
main();
|
|
10
14
|
|
|
@@ -16,10 +20,13 @@ function main() {
|
|
|
16
20
|
type: 'string',
|
|
17
21
|
default: '3000',
|
|
18
22
|
},
|
|
19
|
-
|
|
20
23
|
version: {
|
|
21
24
|
short: 'v',
|
|
22
25
|
type: 'boolean',
|
|
26
|
+
},
|
|
27
|
+
help : {
|
|
28
|
+
short: 'h',
|
|
29
|
+
type: 'boolean',
|
|
23
30
|
}
|
|
24
31
|
},
|
|
25
32
|
});
|
|
@@ -36,11 +43,13 @@ function main() {
|
|
|
36
43
|
return
|
|
37
44
|
}
|
|
38
45
|
|
|
39
|
-
if (
|
|
40
|
-
|
|
41
|
-
|
|
46
|
+
if (values.version || values.help) {
|
|
47
|
+
printHelp(!!values.help);
|
|
48
|
+
return;
|
|
42
49
|
}
|
|
43
50
|
|
|
51
|
+
console.log(`\n${name} v${version}\n\n---\n`);
|
|
52
|
+
|
|
44
53
|
spawn('node', ['.output/server/index.mjs'], {
|
|
45
54
|
stdio: 'inherit',
|
|
46
55
|
shell: true,
|
|
@@ -49,4 +58,22 @@ function main() {
|
|
|
49
58
|
PORT: values.port,
|
|
50
59
|
}
|
|
51
60
|
})
|
|
52
|
-
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function printHelp(verbose: boolean) {
|
|
64
|
+
console.log(`\n${name} v${version}`);
|
|
65
|
+
|
|
66
|
+
if (!verbose) {
|
|
67
|
+
return
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
console.log();
|
|
71
|
+
console.log('>', styleText('green', description), '\n')
|
|
72
|
+
|
|
73
|
+
console.log('Usage: npx poon-choi [options]');
|
|
74
|
+
console.log();
|
|
75
|
+
console.log('Options:');
|
|
76
|
+
console.log(' -p, --port <port> Port to run the server on (default: 3000)');
|
|
77
|
+
console.log(' -v, --version Print version number');
|
|
78
|
+
console.log(' -h, --help Print this help message');
|
|
79
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "poon-choi",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "poon-choi 🍲 is a wechat-cover-studio: a cover mosaic tool to generate wechat (2.35:1) cover image using multiple images.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "git+https://github.com/legend80s/wechat-cover-studio-poon-choi.git"
|
|
32
32
|
},
|
|
33
|
-
"homepage": "https://github.com/legend80s/wechat-cover-studio-poon-choi
|
|
33
|
+
"homepage": "https://github.com/legend80s/wechat-cover-studio-poon-choi",
|
|
34
34
|
"keywords": [
|
|
35
35
|
"wechat",
|
|
36
36
|
"cover",
|