![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Encoding/decoding library for the IATA Bar Coded Boarding Pass
Installation is done using the
npm install
command:
$ npm install bcbp
encode(bcbp: BarcodedBoardingPass) => string
import { encode } from "bcbp";
let output = encode({
data: {
legs: [
{
operatingCarrierPNR: "ABC123",
departureAirport: "YUL",
arrivalAirport: "FRA",
operatingCarrierDesignator: "AC",
flightNumber: "0834",
flightDate: new Date("2020-08-13T00:00:00.000Z"),
compartmentCode: "F",
seatNumber: "001A",
checkInSequenceNumber: "0025",
passengerStatus: "1",
},
],
passengerName: "DESMARAIS/LUC",
},
});
console.log(output);
// M1DESMARAIS/LUC EABC123 YULFRAAC 0834 226F001A0025 106>60000
decode(bcbp: string, referenceYear?: number) => BarcodedBoardingPass
import { decode } from "bcbp";
let output = decode(
"M1DESMARAIS/LUC EABC123 YULFRAAC 0834 226F001A0025 100"
);
console.log(output.data.passengerName);
// DESMARAIS/LUC
Define the year which is used when parsing date fields. If this is undefined, the current year is used.
import { decode } from "bcbp";
let output = decode(
"M1DESMARAIS/LUC EABC123 YULFRAAC 0834 226F001A0025 100",
2010
);
console.log(output.data.legs[0].flightDate.toISOString());
// "2010-08-14T00:00:00.000Z"
See types.ts for the definition.
MIT
FAQs
Encoding/decoding library for the IATA Bar Coded Boarding Pass
We found that bcbp-vb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.