@li0ard/tinytlv
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

tinytlv
Tiny TLV decoder and encoder
docs




Installation

# from NPM
npm i @li0ard/tinytlv

# from JSR
bunx i jsr install @li0ard/tinytlv

Usage

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

Package Sidebar

Install

npm i @li0ard/tinytlv

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

13.7 kB

Total Files

7

Last publish

Collaborators

  • li0ard