npm.io
0.2.6 • Published 2 years ago

@spartan-hc/bundles

Licence
ISC
Version
0.2.6
Deps
5
Size
814 kB
Vulns
0
Weekly
0
Stars
3

Holochain Bundles

A toolkit for managing Holochain bundles (.dna, .happ, .webhapp)

Install

npm i @spartan-hc/bundles

Basic Usage

import { readFile } from 'fs/promises';
import { Bundle } from '@spartan-hc/bundles';

const bytes = await readFile("../some_dna_bundle.dna`);
const bundle = new Bundle( bytes );

// bundle.type === "dna"

const zomes = bundle.zomes();
Contributing

See CONTRIBUTING.md