Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@whi/crux-payload-parser

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whi/crux-payload-parser

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

latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 02 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts