@neoskop/ugl
v2.0.3
Published
A library to create UGL files
Downloads
17
Readme
@neoskop/UGL
A Javascript implementation of the UGL Interface (german only).
Installation
yarn add @neoskop/ugl
# or
npm install --save @neoskop/ugl
Usage
import UGL from '@neoskop/ugl';
const builder = new UGL.Builder();
builder.kop({
requestType: RequestType.AB,
deliveryDate: new Date(2024, 0, 16),
name: 'Foo Bar'
});
const articles = [
['0014211241', 'Article A', 123.32],
['0084353327', 'Article B', 23.87],
['0034267322', 'Article C', 74.52]
];
for (let [articleNumber, name, gross] of articles) {
builder.poa({ articleNumber, name, gross });
}
console.log(builder.build());
2.0 Rewrite
- Rewrite APIs
- Refactor
- Fix 202 byte line length issue
- Add support for GDR records
- Less strict validations, so
RGD – POA - KOP - POA – POA – KOP – POA – POA - END
could be generated now
Testing
yarn test
Building
yarn run build