0.0.3 • Published 4 years ago
mtlv v0.0.3
mtlv
MiniTLV - TLV inspired binary protocol.
Packet layout
Installation
Install from NPM:
$ npm install mtlv --save
Examples
const mtlv = new MTLV();
const packet = mtlv.encode(0x1, [0x2, 0x4]);
const { tag, length, value } = mtlv.decode(packet));
const parser = new MTLVParser();
const { tag, length, value } = parser.parse([0x21, 0x2, 0x4]);