Skip to content

tomsoir/cp-grpx

Repository files navigation

Build Status Coverage Status

Correctprice GRPX lib

A GRPX lib that helps to pack / unpack Correctprice GRPX binary data vectors

Installation

npm install cp-grpx --save
yarn add cp-grpx

Usage

Javascript

const grpx = new GRPX(desc, sect);
const unpackedData = grpx.unpack({grp0, grp1, ..., grp7});
const packedData = grpx.pack([{name, vaule}, {name, vaule} ...]);

TypeScript

import GRPX from 'cp-grpx';

AMD

define(function(require,exports,module){
  var pluralise = require('cp-grpx');
});

Test

npm run test