0.2.6 • Published 1 year ago

@spartan-hc/bundles v0.2.6

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

npm.io

Holochain Bundles

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

npm.io npm.io npm.io

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