# @dwn-protocol/vc-sdk-wasm

> Verifiable Credentials

Latest version **0.0.2** (published 2023-07-02) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dwn-protocol/vc-sdk-wasm
pnpm add @dwn-protocol/vc-sdk-wasm
yarn add @dwn-protocol/vc-sdk-wasm
bun add @dwn-protocol/vc-sdk-wasm
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; large bundle; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-07-02 |
| First published | 2023-05-30 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 18.6 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | John |
| Maintainers | jdutchak |

## Links

- npm: https://www.npmjs.com/package/@dwn-protocol/vc-sdk-wasm
- npm.io page: https://npm.io/package/@dwn-protocol/vc-sdk-wasm

## Dependencies (4)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [jose](https://npm.io/package/jose.md) ^4.14.4
- [path](https://npm.io/package/path.md) ^0.12.7
- [isomorphic-fetch](https://npm.io/package/isomorphic-fetch.md) ^3.0.0

## Recent versions

- 0.0.2 (latest) — 2023-07-02
- 0.0.1 — 2023-05-30

## README

# vc-sdk-wasm

`vc-sdk-wasm` is a library that provides a WebAssembly (WASM) implementation for Verifiable Credentials SDK. It enables functionality in the browser and other JavaScript environments by compiling the SDK to a WASM file. This repository is responsible for building the `main.wasm` file and making it available as an npm package.

## Table of Contents

- [Usage](#usage)
- [Build](#build)
- [Test](#test)


## Usage

To use the vc-sdk-wasm package, simply import it in your project (Note this only works in nodejs currently, to use in react you can follow the example in the example directory):

```bash
import * as VC from 'vc-sdk-wasm';
```

## Build

To install the `vc-sdk-wasm` package, run:

```bash
yarn
yarn build
```

This will produce create the wasm file from the generation code in the wasm directory the following output files:

* dist/index.js: Bundled JavaScript file
* dist/main.wasm: Compiled WASM file

The build script also copies the main.wasm file to the apps/react/public/ directory.

## Test

This contains a simple test to make sure all wasm functions are working properly

```bash
yarn test
```

## Resources

| Resource                                                                               | Description                                                                   |
|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| [CODE_OF_CONDUCT](./CODE_OF_CONDUCT.md) | Expected behavior for project contributors, promoting a welcoming environment |
| [CONTRIBUTING](./CONTRIBUTING.md)       | Developer guide to build, test, run, access CI, chat, discuss, file issues    |
| [GOVERNANCE](./GOVERNANCE.md)           | Project governance                                                            |
| [LICENSE](./LICENSE)                    | Apache License, Version 2.0                                                   |

---
_Source: https://npm.io/package/@dwn-protocol/vc-sdk-wasm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
