Skip to content

MintT-SA/binn.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binn.js

Build Status Deps

Binary serialization using the Binn format.

This module implements a Binn encoder and decoder in pure javascript.

You can check the specs here.

Usage

Header

import { encode, decode } from 'binn.js';
// Or with require
const { encode, decode } = require('binn.js');

Encoding

const obj = { hello: 'world', number: 123 };
const data = encode(obj);

Decoding

const obj = decode(data);

Undefined

The undefined value is enconded using the byte 0x03.

It is an extended type derived from the storage type NOBYTES.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%