Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

mjbrisebois/js-crux-payload-parser

Repository files navigation

Crux Payload Parser

A Javascript library that extends @whi/holochain-client with support for deconstructing data that implement Essence Payloads and Entity Architect structures.

Overview

This package is simply the glue that combines 2 other packages and a peer dependency.

Peer

Latest versions

Install

npm i @whi/crux-payload-parser

Basic usage

const { AgentClient } = require('@whi/holochain-client');
const { CruxConfig } = require('@whi/crux-payload-parser');

const client = new AgentClient( agent, dna_map, connection, options );

const crux_config = new CruxConfig({
    "entity_name": ( content ) => {
        // restructure 'content' value
    },
});
crux_config.upgrade( client );


client.call( ... )
// Entity { ...content }

Contributing

See docs/API.md

Contributing

See CONTRIBUTING.md

About

A Javascript library that extends @whi/holochain-client with support for deconstructing data that implement Essence Payloads and Entity Architect structures

Resources

Stars

Watchers

Forks

Packages

No packages published