
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
sepa-qr-code
Advanced tools
A TypeScript library for generating EPC/SEPA (Single Euro Payments Area) QR Codes for easy bank transfers.
npm install sepa-qr-code
import { SEPAQRGenerator, SEPAData } from "sepa-qr-code";
const generator = new SEPAQRGenerator();
const data: SEPAData = {
name: "John Doe",
iban: "DE89370400440532013000",
amount: "100.00",
currency: "EUR",
remittanceInfo: "Invoice 123",
};
generator
.generateQRCode(data)
.then((qrCode) => {
console.log("QR Code generated:", qrCode);
})
.catch((error) => {
console.error("Error generating QR code:", error.message);
});
The main class for generating SEPA QR codes.
constructor(options?: SEPAQROptions)
Creates a new instance of SEPAQRGenerator.
options: Optional. An object of type SEPAQROptions to customize the QR code generation.generateQRCode(data: SEPAData, outputType: OutputType = 'base64'): Promise<string | Buffer>
Generates a QR code based on the provided SEPA data.
data: An object of type SEPAData containing the SEPA transfer information.outputType: Optional. Specifies the output format of the QR code. Default is 'base64'.An interface representing the data required for a SEPA transfer.
interface SEPAData {
bic?: string;
name: string;
iban: string;
amount?: string;
currency?: string;
purposeCode?: string;
remittanceInfo?: string;
beneficiaryToOriginator?: string;
}
bic: Optional. The Bank Identifier Code (8 or 11 characters).name: Required. The name of the beneficiary (max 70 characters).iban: Required. The International Bank Account Number (15 to 34 characters).amount: Optional. The transfer amount (max 12 characters, including 2 decimal places).currency: Optional. The currency code (3 characters, default is 'EUR').purposeCode: Optional. The purpose of the credit transfer (4 characters).remittanceInfo: Optional. Remittance information/Payment Reference (max 140 characters). This can be used to include additional information such as an order number.beneficiaryToOriginator: Optional. Information from the beneficiary to the originator (max 70 characters).An interface for customizing the QR code generation.
interface SEPAQROptions {
errorCorrectionLevel?: "L" | "M" | "Q" | "H";
margin?: number;
scale?: number;
}
errorCorrectionLevel: Optional. The error correction level of the QR Code.
margin: Optional. The margin around the QR code in modules. Default is 4.scale: Optional. The scale factor for the QR code. Default is 4.A type representing the possible output formats for the QR code.
type OutputType = "base64" | "buffer" | "utf8";
'base64': Returns the QR code as a base64 encoded string.'buffer': Returns the QR code as a Buffer object.'utf8': Returns the raw content of the QR code as a UTF-8 string.FAQs
A TypeScript library for generating SEPA/EPC QR Codes
We found that sepa-qr-code demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.