qrcode
bởi hexavi8
Web & Frontend DevelopmentTóm tắt
Generate styled QR codes (SVG/PNG/JPG) with custom colors, shapes, and error correction.
Mô tả
Kỹ năng này làm gì
Generates QR codes from text or URLs in SVG, PNG, or JPG formats. Supports custom colors, dot shapes, finder pattern styles, and error correction levels. Output files are saved to the workspace root with path traversal protection enforced.
Combines format flexibility, styling options, and error correction tuning in a single CLI tool, avoiding the need to use separate web services or image editors for QR code customization.
Khi nào nên dùng
- Generating a branded QR code for a business card with custom colors
- Creating a WiFi credential QR code for a guest network
- Producing a high-resolution QR code for a print poster
- Making a transparent PNG QR code for logo overlay use
- Generating a vCard QR code with rounded styling for social media
Quy trình ví dụ
User asks: Generate a styled QR code for https://example.com with circular dots and blue color, suitable for a business card
- 1
Runs generate.mjs with the URL, --dot circle, --eye rounded, --color #2563eb, --format svg, and --ec Q flags
- 2
Saves the output SVG to the workspace root
- 3
Displays the generated file using markdown image syntax
- 4
Confirms the file path and format to the user
- 5
Offers to regenerate with different size or styling if needed
SVG file at workspace root displaying a blue circular-dot QR code scannable to https://example.com
Cài đặt
clawhub install hexavi8/qrcodeChạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.