# European Invoicing (eInvoicing)

## About
eInvoicing is a JavaScript library designed to create and parse electronic invoices in compliance with the [eInvoicing Directive and European standard](https://ec.europa.eu/digital-building-blocks/wikis/display/DIGITAL/eInvoicing).

The library ensures full adherence to [EN 16931](https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/EN+16931+compliance), supporting the most widely used CIUS (Core Invoice Usage Specifications) and extensions, including [PEPPOL BIS](https://docs.peppol.eu/poacc/billing/3.0/bis/), enabling seamless integration with eInvoicing systems across Europe.

## Installation
First of all, make sure your environment meets the following requirements:

Then, you should be able to install this library using Composer:

```
npm i --save einvoicing
```

## Usage

### Importing invoice documents
```typescript
import { UblReader } from "einvoicing";

const ublReader = new UblReader();
const document = await ublReader.readFromFile('invoice.xml');
```
