0.0.4 • Published 2 years ago

upn-generator v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm codecov npm npm

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...

Upn Example

License

The MIT License (MIT). Please see License File for more information.