UNPKG

epc-tds-ts

Version:

EPC Tag Data Standard encoding and decoding library, written in javascript for Node.js

16 lines (15 loc) 388 B
"use strict"; /* * EPC Tag Data Standard * 2021 Sergio S. */ var Segment = /** @class */ (function () { function Segment(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 } return Segment; }()); module.exports = { Segment: Segment };