tinytlv - v0.1.0

tinytlv
Tiny TLV decoder and encoder
docs




# from NPM
npm i @li0ard/tinytlv

# from JSR
bunx i jsr install @li0ard/tinytlv
import { TLV } from "@li0ard/tinytlv"

let tlv = TLV.parse("770E8202580094080801010010010301")
console.log(tlv.tag) // 77
console.log(tlv.length) // 14
console.log(tlv.value) // 8202580094080801010010010301
console.log(tlv.toString()) // 770E8202580094080801010010010301