upn-generator
v0.0.4
Published
Tool for generating Slovenian universal payment orders (a UPN Generator Tool).
Downloads
6
Maintainers
Readme
UPN Generator
Tool for generating Slovenian universal payment orders (UPNs).
Features
- Easy to use: just one function call and you're done
- Typed: Ships with types included
- Works everywhere: Supports all browsers and Node.js
Getting Started
npm i upn-generator
import { generateUPN } from "upn-generator";
const upn = await generateUPN({
payerName: "Peter Gregory",
payerAddress: "@ Raviga",
payerPost: "Palo Alto",
receiverName: "Pied Piper Inc.",
receiverAddress: "Beyond The 4th Star",
receiverPost: "Palo Alto",
receiverIban: "DE75512108001245126199",
reference: "SI9901284584",
purpose: "Investment",
amount: 12345678.9,
code: "OTHR",
dueDate: new Date(),
});
const dateURL = upn.toDataURL(); // data:image/png;base64,iVBORw0KGgoA...
License
The MIT License (MIT). Please see License File for more information.