# @spartan-hc/bundles

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

Latest version **0.2.6** (published 2024-05-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install @spartan-hc/bundles
pnpm add @spartan-hc/bundles
yarn add @spartan-hc/bundles
bun add @spartan-hc/bundles
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2024-05-20 |
| First published | 2023-10-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 814.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Matthew Brisebois |
| Maintainers | brisebom |

## Links

- npm: https://www.npmjs.com/package/@spartan-hc/bundles
- Repository: https://github.com/spartan-holochain-counsel/bundles-js
- Homepage: https://github.com/spartan-holochain-counsel/bundles-js#readme
- Issues: https://github.com/spartan-holochain-counsel/bundles-js/issues
- npm.io page: https://npm.io/package/@spartan-hc/bundles

## Dependencies (5)

- [fflate](https://npm.io/package/fflate.md) ^0.8.1
- [@whi/json](https://npm.io/package/@whi/json.md) ^0.1.7
- [clone-deep](https://npm.io/package/clone-deep.md) ^4.0.1
- [@whi/weblogger](https://npm.io/package/@whi/weblogger.md) ^0.4.0
- [@msgpack/msgpack](https://npm.io/package/@msgpack/msgpack.md) ^2.7.0

## Recent versions

- 0.2.6 (latest) — 2024-05-20
- 0.2.5 — 2024-05-15
- 0.2.4 — 2024-05-15
- 0.2.3 — 2024-05-10
- 0.2.2 — 2023-10-26
- 0.2.1 — 2023-10-25
- 0.2.0 — 2023-10-24
- 0.1.0 — 2023-10-05

## README

[![](https://img.shields.io/npm/v/@spartan-hc/bundles/latest?style=flat-square)](http://npmjs.com/package/@spartan-hc/bundles)

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

[![](https://img.shields.io/github/issues-raw/spartan-holochain-counsel/bundles-js?style=flat-square)](https://github.com/spartan-holochain-counsel/bundles-js/issues)
[![](https://img.shields.io/github/issues-closed-raw/spartan-holochain-counsel/bundles-js?style=flat-square)](https://github.com/spartan-holochain-counsel/bundles-js/issues?q=is%3Aissue+is%3Aclosed)
[![](https://img.shields.io/github/issues-pr-raw/spartan-holochain-counsel/bundles-js?style=flat-square)](https://github.com/spartan-holochain-counsel/bundles-js/pulls)


## Install

```bash
npm i @spartan-hc/bundles
```

## Basic Usage

```javascript
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](CONTRIBUTING.md)

---
_Source: https://npm.io/package/@spartan-hc/bundles · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
