0.3.2 • Published 1 year ago

@whi/crux-payload-parser v0.3.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

npm.io

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

npm.io npm.io npm.io

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

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago