Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
swiss-qr-invoice-js
Advanced tools
creates 🇨🇭 qr invoices using pdfkit
swiss-qr-invoice-js is a library that generates 🇨🇭 QR payment sections. It is capable to either generate a PDF file from scratch or attach the section to a given PDFkit document instance.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Install the package via npm:
npm install swiss-qr-invoice-js --save
or via yarn:
yarn add swiss-qr-invoice-js
import QRInvoice from 'swiss-qr-invoice-js';
const invoice = new QRInvoice()
.setAmount(100.0)
.setCurrency('CHF')
.setCreditor({
name: 'Cytex GmbH',
address: 'Musterstrasse 1',
zip: '8000',
city: 'Zürich',
country: 'CH',
iban: 'CH9300762011623852957',
reference: '123456789012345678901234567',
})
.setDebtor({
name: 'Max Muster',
address: 'Musterstrasse 2',
zip: '8000',
city: 'Zürich',
country: 'CH',
})
.setReference('123456789012345678901234567')
.setAdditionalInformation('Rechnung 2021-01');
// Generate a PDF file
invoice.save('invoice.pdf');
// Attach the QR invoice to an existing PDF document
const pdfDocument = new PDFDocument();
invoice.attachToPDF(pdfDocument);
Tests are written with jest. You can run them with the following command:
npm run test
FAQs
creates swiss qr invoices using pdfkit
The npm package swiss-qr-invoice-js receives a total of 2 weekly downloads. As such, swiss-qr-invoice-js popularity was classified as not popular.
We found that swiss-qr-invoice-js 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.