No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
neoskop.png
package.json
tsconfig.es6.json
tsconfig.json
yarn.lock

README.md

@neoskop/UGL

A Javascript implementation of the UGL Interface (german only).

Master Travis master Test coverage master Known Vulnerabilities master

Develop Travis develop Test coverage develop Known Vulnerabilities develop

Installation

yarn add @neoskop/ugl

Usage

import { ugl, RequestType } from '@neoskop/ugl';
  
const builder = ugl(); // equivalent for new UGLBuilder(new UGLMemoryWriter(), Mode.Craftsman);  
  
builder.kop({ 
    requestType: RequestType.AB, 
    deliveryDate: new Date(2017, 8, 16),
    name: 'Mark Wecke'
});
  
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 })
}

builder.end();
  
console.log(builder.getWriter().toString());

Testing

yarn test

Building

yarn run build

License

MIT

Sponsor

Neoskop GmbH