ngx-barcode

An angular component for Angular 4+ for creating 1-D barcodes based on Lindell's JsBarcode

  • Owner: yobryon/ngx-barcode
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart


An angular component for Angular 4+ for creating 1-D barcodes based on Lindell's JsBarcode.

Demo

Basic demo.

Features

  • supports all barcode formats provided by JsBarcode
    • CODE128
    • EAN
    • CODE39
    • ITF-14
    • MSI
    • Pharmacode
    • Codabar

Installation

To use ngx-barcode in your project, install it via npm:

$ npm install ngx-barcode --save

Usage

Import the NgxBarcodeModule into your desired module:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import ngx-barcode module
import { NgxBarcodeModule } from 'ngx-barcode';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    NgxBarcodeModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once the library is imported, you can use the ngx-barcode component in your Angular application:

<!-- Adding a barcode in app.component.html -->
<h1>
  {{title}}
</h1>
<ngx-barcode [bc-value]="value" [bc-display-value]="true"></ngx-barcode>

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Bryon Williams

Main metrics

Overview
Name With Owneryobryon/ngx-barcode
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 2)
Platform
License:
所有者活动
Created At2017-04-25 18:10:19
Pushed At2022-12-10 18:16:29
Last Commit At2020-07-20 18:59:54
Release Count6
Last Release Namev0.2.4 (Posted on 2017-07-23 16:43:09)
First Release Namev0.1.1 (Posted on 2017-04-25 11:50:28)
用户参与
Stargazers Count81
Watchers Count3
Fork Count53
Commits Count50
Has Issues Enabled
Issues Count33
Issue Open Count22
Pull Requests Count1
Pull Requests Open Count38
Pull Requests Close Count16
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private