Closed domguinard closed 3 years ago
We are starting to work on this. Do you have in mind which IDs you'd like to get helpers for? Is the list of GS1 primary identifiers what you are after (SGTIN, SGLN, SGRAI, SSCC, etc).
With the next version of epcis2.js
, you'll be able to easily build a SGTIN URI:
const urn = buildSGTINUri('0614141', '112345', '400'); // returns 'urn:epc:id:sgtin:0614141.112345.400'
Similar function are available for SGLN
, SSCC
, GRAI
, GIAI
, GSRN
, GSRNP
, GDTI
, CPI
, SGCN
, GINC
, GSIN
, ITIP
, GID
.
Each function are based on the fields defined in the gs1 official documentation.
Added to release 1.1.0.
(suggested by Scott at Zebra) Add convenience methods to construct id-key uris...