@qrdx/cli 0.0.6 → 0.0.7
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/README.md +0 -3
- package/dist/index.js +4 -4
- package/package.json +16 -15
package/README.md
CHANGED
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
QR code generator CLI for developers. Generate styled, scannable QR codes as SVG, PNG, WebP or vector EPS. It runs non-interactively in scripts and CI, and guides you with prompts when run in a terminal. It renders with the same [`qrdx`](https://www.npmjs.com/package/qrdx) library as the [QRdx](https://qrdx.dev) web app.
|
|
4
4
|
|
|
5
|
-
> [!NOTE]
|
|
6
|
-
> This README documents `@qrdx/cli` 0.0.6, the version in this repository. WebP output is new in 0.0.6; 0.0.5 has every other option here. Run `npm view @qrdx/cli version` to see what npm installs. Until it is 0.0.6, get WebP from the [image API](https://qrdx.dev/docs/developers/image-api): `curl -o qr.webp "https://api.qrdx.dev/v1/qr?data=https://example.com&format=webp"`.
|
|
7
|
-
|
|
8
5
|
## Install
|
|
9
6
|
|
|
10
7
|
Run without installing:
|
package/dist/index.js
CHANGED
|
@@ -563,7 +563,7 @@ function isCancel2(value) {
|
|
|
563
563
|
function handleCancel() {
|
|
564
564
|
p.cancel("Cancelled.");
|
|
565
565
|
console.error(
|
|
566
|
-
`${DIM}Tip:${RESET} ${TEXT}qrdx generate "https://\u2026" -o qr.svg${RESET} \u2014 local dev: ${TEXT}
|
|
566
|
+
`${DIM}Tip:${RESET} ${TEXT}qrdx generate "https://\u2026" -o qr.svg${RESET} \u2014 local dev: ${TEXT}bun run qrdx generate \u2026${RESET}`
|
|
567
567
|
);
|
|
568
568
|
process.exit(0);
|
|
569
569
|
}
|
|
@@ -1262,7 +1262,7 @@ ${BOLD}Generate Options:${RESET3}
|
|
|
1262
1262
|
--dot Corner dot pattern, e.g.:
|
|
1263
1263
|
${DIM3}square, rounded, circle, leaf, drop, squircle,${RESET3}
|
|
1264
1264
|
${DIM3}octagon, flower, heart, plus, dots${RESET3}
|
|
1265
|
-
${DIM3}All options: https://qrdx.dev/docs/styles${RESET3}
|
|
1265
|
+
${DIM3}All options: https://qrdx.dev/docs/styles?ref=cli${RESET3}
|
|
1266
1266
|
--fg Foreground color \u2014 hex or JSON gradient ${DIM3}(default: #000000)${RESET3}
|
|
1267
1267
|
--bg Background color \u2014 hex or JSON gradient ${DIM3}(default: #ffffff)${RESET3}
|
|
1268
1268
|
--eye-color Corner eye color \u2014 hex or JSON gradient ${DIM3}(default: matches --fg)${RESET3}
|
|
@@ -1276,7 +1276,7 @@ ${BOLD}Generate Options:${RESET3}
|
|
|
1276
1276
|
--frame Call-to-action frame (adds space around the code), e.g.:
|
|
1277
1277
|
${DIM3}none, banner-bottom, banner-top, rounded-border,${RESET3}
|
|
1278
1278
|
${DIM3}speech-bubble, polaroid, phone, ticket, sticker${RESET3}
|
|
1279
|
-
${DIM3}All frames: https://qrdx.dev/docs/styles${RESET3}
|
|
1279
|
+
${DIM3}All frames: https://qrdx.dev/docs/styles?ref=cli${RESET3}
|
|
1280
1280
|
--frame-text Frame label, up to 24 characters ${DIM3}(default: Scan me; "" hides it)${RESET3}
|
|
1281
1281
|
--frame-color Frame color \u2014 hex ${DIM3}(default: #000000)${RESET3}
|
|
1282
1282
|
--frame-text-color Frame label color \u2014 hex ${DIM3}(default: white on banners)${RESET3}
|
|
@@ -1318,7 +1318,7 @@ ${BOLD}Examples:${RESET3}
|
|
|
1318
1318
|
${DIM3}$${RESET3} qrdx batch products.csv -o codes --format png --size 1024 --body circle
|
|
1319
1319
|
${DIM3}$${RESET3} qrdx generate "https://qrdx.dev" --fg '{"type":"linear","stops":[{"color":"#6366f1","offset":0},{"color":"#ec4899","offset":100}],"angle":135}' -o gradient.svg
|
|
1320
1320
|
|
|
1321
|
-
Visit ${TEXT3}https://qrdx.dev${RESET3} for more.
|
|
1321
|
+
Visit ${TEXT3}https://qrdx.dev/?ref=cli${RESET3} for more.
|
|
1322
1322
|
`);
|
|
1323
1323
|
}
|
|
1324
1324
|
async function main() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qrdx/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "QR code generator CLI for developers: styled SVG, PNG, WebP and vector EPS QR codes from the command line",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"qr-code",
|
|
@@ -32,38 +32,39 @@
|
|
|
32
32
|
"dist",
|
|
33
33
|
"README.md"
|
|
34
34
|
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"qrdx": "node ./dist/index.js",
|
|
37
|
+
"build": "tsup",
|
|
38
|
+
"dev": "tsup --watch",
|
|
39
|
+
"test": "vitest run",
|
|
40
|
+
"test:watch": "vitest",
|
|
41
|
+
"clean": "git clean -xdf .cache .turbo dist node_modules",
|
|
42
|
+
"typecheck": "tsc --noEmit",
|
|
43
|
+
"prepublishOnly": "node -e \"if(!(process.env.npm_config_user_agent||'').startsWith('bun/')){console.error('Publish through the Publish workflow, or with bun publish, which replaces workspace ranges with real versions.');process.exit(1)}\" && bun run build && bun run test && node ../qrdx/scripts/readme-catalogue.mjs --check"
|
|
44
|
+
},
|
|
35
45
|
"dependencies": {
|
|
36
46
|
"@clack/prompts": "^1.8.1",
|
|
37
47
|
"picocolors": "^1.1.1",
|
|
48
|
+
"qrdx": "0.0.49",
|
|
38
49
|
"react": "19.3.1",
|
|
39
|
-
"react-dom": "19.3.1"
|
|
40
|
-
"qrdx": "0.0.48"
|
|
50
|
+
"react-dom": "19.3.1"
|
|
41
51
|
},
|
|
42
52
|
"optionalDependencies": {
|
|
43
53
|
"sharp": "^0.35.5"
|
|
44
54
|
},
|
|
45
55
|
"devDependencies": {
|
|
56
|
+
"@repo/typescript-config": "0.0.0",
|
|
46
57
|
"@types/node": "^26.6.6",
|
|
47
58
|
"@types/react": "19.3.0",
|
|
48
59
|
"@types/react-dom": "19.3.0",
|
|
49
60
|
"tsup": "^9.0.0",
|
|
50
61
|
"typescript": "6.0.3",
|
|
51
|
-
"vitest": "^5.0.5"
|
|
52
|
-
"@repo/typescript-config": "0.0.0"
|
|
62
|
+
"vitest": "^5.0.5"
|
|
53
63
|
},
|
|
54
64
|
"engines": {
|
|
55
65
|
"node": ">=22"
|
|
56
66
|
},
|
|
57
67
|
"publishConfig": {
|
|
58
68
|
"access": "public"
|
|
59
|
-
},
|
|
60
|
-
"scripts": {
|
|
61
|
-
"qrdx": "node ./dist/index.js",
|
|
62
|
-
"build": "tsup",
|
|
63
|
-
"dev": "tsup --watch",
|
|
64
|
-
"test": "vitest run",
|
|
65
|
-
"test:watch": "vitest",
|
|
66
|
-
"clean": "git clean -xdf .cache .turbo dist node_modules",
|
|
67
|
-
"typecheck": "tsc --noEmit"
|
|
68
69
|
}
|
|
69
|
-
}
|
|
70
|
+
}
|