@schie/epc - v0.2.0
    Preparing search index...

    Variable encodeSgtin96FromUpcAConst

    encodeSgtin96FromUpcA: (input: Gtin12ToSgtin96Input) => Sgtin96Result = encodeSgtin96FromGTIN12

    UPC-A is the barcode representation of GTIN-12.

    Type Declaration

      • (input: Gtin12ToSgtin96Input): Sgtin96Result
      • Convert a UPC-A into an SGTIN-96 EPC.

        Parameters

        Returns Sgtin96Result

        const result = encodeSgtin96FromUpcA({
        upc: '036000291452',
        companyPrefixLength: 6,
        serial: 123,
        indicatorDigit: 1,
        });
        result.fields;
        // => { filter: 1, partition: 5, companyPrefix: '0036000', itemReference: '129145', serial: '123' }