npm

Need private packages and team management tools?Check out npm Orgs. »

@neoskop/ugl

1.2.1 • Public • Published

@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

Keywords

install

npm i @neoskop/ugl

Downloadsweekly downloads

15

version

1.2.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability