
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
bwip-angular2
Advanced tools
JavaScript barcode generator supporting over 90 types and standards.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
npm install bwip-angular2
After the installation of the library you must copy the folder "fonts" from 'node_modules/bwip-js/' to the '<your_app_folder>/src/assets' and rename it (the folder "fonts") to "bwipjs-fonts"
import { Component } from '@angular/core';
import bwipjs from 'bwip-angular2';
@Component({
selector: 'barcode',
template: `<button (click)="renderBarcode()">Click to render</button>
<canvas id="barcodeCanvas"></canvas>
<div id="err"></div>`,
styleUrls: ['./barcode-component.sass']
})
export class BarcodeComponent {
public renderBarcode(): void {
bwipjs('barcodeCanvas', {
bcid: 'code128', // Barcode type
text: '987654321', // Text to encode
scale: 3, // 3x scaling factor
height: 10, // Bar height, in millimeters
width: 10,
includetext: true, // Show human-readable text
textxalign: 'center', // Always good to set this
}, (err, cvs) => {
if (err) {
document.getElementById('err').innerText = 'Error occured. See browser log for more information';
console.log(err);
} else {
}
});
}
}
For more information and barcode options see bwip-js.
FAQs
JavaScript barcode generator supporting over 90 types and standards.
The npm package bwip-angular2 receives a total of 199 weekly downloads. As such, bwip-angular2 popularity was classified as not popular.
We found that bwip-angular2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.