@neoskop/ugl

A library to create UGL files

Showing:

Popularity

Downloads/wk

0

GitHub Stars

0

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Built-In

Tree-Shakeable

Yes?

Categories

Readme

@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

Neoskop GmbH

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial