Releases: tomkp/ber-tlv
Releases · tomkp/ber-tlv
Release list
v1.0.1
v1.0.0
Initial Release
A modern TypeScript library for ASN.1 BER-TLV encoding and decoding.
Features
- Parse BER-TLV encoded data into structured objects
- Encode TLV structures back to binary format
- Support for multi-byte tags (up to 3 bytes)
- Support for short and long form length encoding
- Handle nested/constructed TLV structures
- Zero runtime dependencies
- 100% test coverage
Installation
npm install @tomkp/ber-tlvUsage
import { parse, encode } from "@tomkp/ber-tlv";
// Parse TLV data
const tlvs = parse(new Uint8Array([0x01, 0x02, 0xab, 0xcd]));
// Encode TLV data
const bytes = encode(tlvs);