UNPKG

@ombori/epc-ean

Version:

EPC Tag Data Standard encoding and decoding library, written in javascript

17 lines (16 loc) 449 B
"use strict"; /* * EPC Tag Data Standard * 2021 Sergio S. - https://github.com/sergiss/epc-tds */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Segment = void 0; class Segment { constructor(offset, bits, digits) { this.start = offset; this.end = offset + bits; this.digits = digits; this.maxValue = Math.pow(10, digits) - 1; // Max value in n digits } } exports.Segment = Segment;