0.0.3 • Published 4 years ago

mtlv v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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]);
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago