Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-angular-barcodesyncfusion Angular barcode 命令行

Agent Skill

syncfusion-angular-barcode 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,126

周安装

46

GitHub Stars

公开资料未说明

下载量

364
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-angular-barcode(syncfusion Angular barcode 命令行)
来源仓库:https://github.com/syncfusion/angular-ui-components-skills
仓库路径:skills/syncfusion-angular-barcode
安装命令:
npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-barcode
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-barcode

简介

生成条形码生成与识别组件,支持多种编码格式与扫描解析。

  • 适用于库存管理、物流追踪等需要条码处理的业务场景。
  • 通过 GitHub 仓库安装,使用 npx 命令添加技能并指定路径。
  • 需测试不同设备摄像头兼容性,确保扫码成功率达标。syncfusion-angular-barcode 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 打印条码时应调整尺寸与对比度,避免扫描器无法识别。

SKILL.md

Implementing Barcode Generation

When to Use This Skill

Use this skill when you need to:

  • Create linear barcodes (Code39, Code128, Code11, Codabar, Code32, Code93) for product identification and inventory management
  • Generate QR codes for URLs, contact info, and quick data sharing
  • Encode Data Matrix codes for compact, high-density encoding (healthcare, logistics)
  • Customize barcode appearance (colors, dimensions, display text, logos)
  • Export barcodes as image files (PNG, JPG) or base64 strings
  • Add logos to QR codes for branding and visual enhancement

Important: API Verification Required

API Verification Required: Always verify API class names, properties, and signatures by reading reference files (references/*.md) BEFORE generating code examples. Do not assume or infer class names.

Real-world scenarios:

  • Product labeling systems for retail/inventory
  • Mobile payment & authentication (QR codes)
  • Healthcare/pharmaceutical tracking (Data Matrix)
  • Document management & archiving
  • Marketing campaigns using branded QR codes

Component Overview

The Syncfusion Angular Barcode Generator supports three barcode families with extensive customization:

Barcode Types

TypeUse CaseCharacter SetIndustry
Linear (Code39, Code128, Code11, Codabar, Code32, Code93)Product IDs, serial numbers, inventoryAlphanumeric (varies by type)Retail, Warehouse, Telecom
QR CodeURLs, contact info, paymentsFull UnicodeMarketing, Mobile, Finance
Data MatrixCompact encoding, small labelsNumeric/AlphanumericHealthcare, Manufacturing, Logistics

Key Capabilities

  • 7 linear barcode types with symbol validation
  • Full customization (colors, dimensions, fonts, margins)
  • Logo support for QR codes via QRCodeLogo
  • Multiple export formats (PNG, JPG, Base64)
  • Automatic version selection for QR codes
  • Display text customization below barcodes

Documentation & Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation & package setup (@syncfusion/ej2-angular-barcode-generator)
  • Ivy vs ngcc package selection
  • Basic component setup & imports
  • Creating first Code128 barcode & QR code
  • Project configuration & CSS

Linear Barcodes (Code39, Code128, etc.)

📄 Read: references/linear-barcodes.md

  • Code39 (standard alphanumeric)
  • Code39 Extended (full ASCII support)
  • Code128 (high-density encoding with 3 character sets)
  • Code11 (telecommunications)
  • Codabar (libraries, blood banks)
  • Code32 (pharmaceutical/cosmetics)
  • Code93 & Code93 Extended
  • Character set limitations & validation
  • When to choose each type

QR Codes

📄 Read: references/qr-codes.md

  • QR code versions (1-40) & capacity
  • Basic QR code generation
  • Color customization (foreColor, backgroundColor)
  • Dimension control (width, height)
  • Display text below QR code
  • Adding logos & icons (QRCodeLogo with imageSource)
  • Logo positioning & sizing
  • Image sources (local files, URLs, base64)
  • Error correction levels

Data Matrix Codes

📄 Read: references/data-matrix-barcodes.md

  • Data Matrix overview & advantages
  • Use cases (healthcare, logistics, compact encoding)
  • Square vs rectangular symbols
  • Dimension customization
  • Color & appearance options
  • Display text configuration
  • When to use vs QR codes

Customization & Styling

📄 Read: references/customization.md

  • Shared customization properties (all barcode types)
  • Color customization (foreColor, backgroundColor)
  • Dimensions & scaling (width, height)
  • Margins & padding
  • Display text properties & positioning
  • CSS class customization
  • Responsive barcode sizing
  • Advanced styling across all types

Exporting Barcodes

📄 Read: references/exporting-barcodes.md

  • Export as image file (PNG, JPG)
  • Export as base64 string
  • Download functionality & file naming
  • Integration with backend systems
  • Use cases (printing, storage, sharing)

Quick Start Example

Basic Code128 Barcode

<!-- app.component.html -->
<ejs-barcodegenerator
  #barcode
  type="Code128"
  value="123456789"
  width="200px"
  height="150px">
</ejs-barcodegenerator>
// app.component.ts
import { Component } from '@angular/core';
import { BarcodeGeneratorComponent } from '@syncfusion/ej2-angular-barcode-generator';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html'
})
export class AppComponent {}

QR Code with Custom Color

<ejs-barcodegenerator
  type="QRCode"
  value="https://example.com"
  [foreColor]="'#FF0000'"
  width="200px"
  height="200px">
</ejs-barcodegenerator>

Common Patterns

Pattern 1: Choose Barcode Type by Use Case

User needs to encode:

  • Product/inventory? → Code128 (high-density, retail standard)
  • Legacy system? → Code39 (widely supported)
  • Pharmaceutical? → Code32 (industry standard)
  • URL/contact? → QR Code (compact, mobile-friendly)
  • Small label? → Data Matrix (high-density, space-efficient)

Pattern 2: Customize for Different Backgrounds

// Light background
@barcode type="Code128" foreColor="#000000" backgroundColor="#FFFFFF"

// Dark background
@barcode type="Code128" foreColor="#FFFFFF" backgroundColor="#000000"

// Branded QR code
@barcode type="QRCode" [qRCodeLogo]="logoConfig" foreColor="#1976D2"

Pattern 3: Export & Download

export class BarcodeComponent {
  @ViewChild('barcode') barcode: BarcodeGeneratorComponent;

  downloadBarcode() {
    this.barcode.exportImage('barcode','PNG');
  }

  getBase64() {
    const base64String = this.barcode.toDataURL('image/png');
    // Send to server or store
  }
}

Pattern 4: Branded QR Codes with Logo

<ejs-barcodegenerator
  type="QRCode"
  value="https://mysite.com"
  #qrCode>
</ejs-barcodegenerator>
export class BrandedQRComponent implements OnInit {
  @ViewChild('qrCode') qrCode: BarcodeGeneratorComponent;

  ngOnInit() {
    (this.qrCode.qrcodelogo as QRCodeLogo) = {
      imageSource: 'assets/logo.svg',
      width: 50,
      height: 50
    };
  }
}

Key Props Summary

PropertyTypeUse WhenDefault
typestringSelecting barcode type (Code128, QRCode, DataMatrix)Code128
valuestringSetting encoded data""
widthstringControlling barcode width (px, %)Auto
heightstringControlling barcode height (px, %)Auto
foreColorstringSetting barcode color (#RGB or name)#000000
backgroundColorstringSetting background color#FFFFFF
displayTextobject{visibility: false}Adding human-readable label below barcode
marginobjectAdding space around barcode{left: 0, right: 0, top: 0, bottom: 0}
qRCodeLogoobjectAdding logo to QR code (imageSource, width, height)undefined
modestringRendering mode (SVG or Canvas)SVG

Common Use Cases

Use Case 1: Retail Product Labeling System

// Create multiple product barcodes with customization
products.forEach(product => {
  <ejs-barcodegenerator
    type="Code128"
    [value]="product.sku"
    [displayText]="{ text: 'Product SKU: 123456789', visibility: true }"
    foreColor="#333333"
    width="150px"
    height="100px">
  </ejs-barcodegenerator>
});

Use Case 2: Mobile QR Code with Branding

// QR code for app promotion with branded logo
<ejs-barcodegenerator
  type="QRCode"
  value="https://appstore.com/myapp"
  [qRCodeLogo]="{ imageSource: 'assets/app-icon.png', width: 40, height: 40 }"
  [foreColor]="'#1976D2'"
  width="250px"
  height="250px">
</ejs-barcodegenerator>

Use Case 3: Healthcare Tracking with Data Matrix

// Compact Data Matrix for pharmaceutical packaging
<ejs-barcodegenerator
  type="DataMatrix"
  [value]="medicineTrackingCode"
  [displayText]="{ text: 'Product SKU: 123456789', visibility: true }"
  width="80px"
  height="80px">
</ejs-barcodegenerator>

Next Steps

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.26%
按下载量换算136

Claude

30.36%
按下载量换算111

Cursor

20.62%
按下载量换算75

Gemini CLI

8.93%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills