Skip to content

Releases: tomkp/ber-tlv

Release list

v1.0.1

Choose a tag to compare

@tomkp tomkp released this 28 Dec 15:51
09eac27

v1.0.1

Patch release for npm publishing.

Installation

npm install @tomkp/ber-tlv

v1.0.0

Choose a tag to compare

@tomkp tomkp released this 28 Dec 15:47
cc3c649

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-tlv

Usage

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