
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
boardingbarcode
Advanced tools
Generate an SVG boarding pass barcode using Nodejs.
const barcode = require('boardingbarcode');
//Generate barcode
/**
* boardingType: 0 AZTEC or 1 PDF417
* boardingPassSize: 0-100
* text: Boarding pass text config
*/
//barcode(boardingType, text, errorCorrection, boardingPassSize)
barcode(1, 6, {
firstName: 'Carlos',
lastName: 'Martin',
PNR: 'XYZ123',
from: 'HNL',
to: 'LAX',
flightOperator: 'HA',
flightNumber: '123',
date: '10/30/2017',
class: 'F0', //FirstClass
seat: '35A',
boardingIndex: '0001'
}).then(svg => {
console.log(svg);
});
FAQs
Generate an svg of a boarding pass barcode.
The npm package boardingbarcode receives a total of 0 weekly downloads. As such, boardingbarcode popularity was classified as not popular.
We found that boardingbarcode 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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.