0.2.2 • Published 7 months ago

@spartan-hc/bundles v0.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months 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