postel-ita
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Postel-ITA

Postel-ITA is a library to create files compatible with the Italian Poste Postel system.

Installation

To install the library, use the following command:

pnpm install postel-ita

Usage

Here is an example of how to use the library:

import { Postel, Currency, Payment } from 'postel-ita';

const postel = new Postel();

const headerParams = {
  // ...header parameters...
};

const paymentParams = {
  // ...payment parameters...
};

postel.header.init(headerParams);

const payment = new Payment(paymentParams);
postel.payments.push(payment);

const mBody = postel.payments[0].missive.body;

mBody
  .addRow(10, 'abs')
  .appendText('€' + paymentParams.comm.amount.toPostelString())
  .setMaxWidth(21)
  .setAlignRight(36);

// ...additional code...

console.log(postel.result());

Changelog

See the CHANGELOG for details on changes and updates.

License

This project is licensed under the ISC License - see the LICENSE file for details.

Readme

Keywords

Package Sidebar

Install

npm i postel-ita

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

65.9 kB

Total Files

52

Last publish

Collaborators

  • ebruni