A Javascript library that extends
@whi/holochain-client
with support for
deconstructing data that implement Essence
Payloads
and Entity Architect structures.
This package is simply the glue that combines 2 other packages and a peer dependency.
Peer
Latest versions
npm i @whi/crux-payload-parser
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 }
See docs/API.md
See CONTRIBUTING.md