primea-objects

0.1.3 • Public • Published

SYNOPSIS

NPM Package Build Status Coverage Status

js-standard-style

Object helper classes for Primea's system Objects

INSTALL

npm install primea-objects

USAGE

const objects = require('primea-objects')

const id = new objects.ID(Buffer.from([0x1]))
const modRef = new objects.ModuleRef({'name': ['i32']}, id)
const funcRef = rmodRef.getFuncRef('name')

// all objects can be encoded to cbor with borc
const cbor = require('borc')
const encodedModRef = cbor.encode(modRef)

// and decoded with the decoder
objects.decoder.decodeFirst(encodedModRef)

API

./docs/

SPONSERED BY

LICENSE

MPL-2.0

/primea-objects/

    Package Sidebar

    Install

    npm i primea-objects

    Weekly Downloads

    2

    Version

    0.1.3

    License

    MPL-2.0

    Unpacked Size

    44.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • floorlamp
    • null_radix