JSPM

@interweb-it/jam-codec

0.1.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q47918F
  • License Apache-2.0

TypeScript implementation of the JAM codec

Package Exports

  • @interweb-it/jam-codec

Readme

@interweb-it/jam-codec

TypeScript implementation of the JAM codec for binary serialization and deserialization. This library is based on @paritytech/jam-codec repository.

Installation

yarn add @interweb-it/jam-codec

Usage

import { encode, decode } from '@interweb-it/jam-codec';

// Encoding
const data = { foo: 'bar', baz: 42 };
const encoded = encode(data);

// Decoding
const decoded = decode(encoded);

Features

  • Binary serialization and deserialization
  • Type-safe encoding and decoding
  • Efficient variable-length integer encoding
  • Support for complex data structures

License

Apache-2.0