# @keyring/cbor-plugin

> Plugin for storing data in a transaction with cbor encoding

Latest version **0.2.1** (published 2020-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @keyring/cbor-plugin
pnpm add @keyring/cbor-plugin
yarn add @keyring/cbor-plugin
bun add @keyring/cbor-plugin
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2020-05-07 |
| First published | 2019-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 32 |
| Author | Josh Robinson |
| Maintainers | hexorx, justin16 |

## Links

- npm: https://www.npmjs.com/package/@keyring/cbor-plugin
- Repository: https://github.com/BitbossIO/keyring
- Homepage: https://github.com/BitbossIO/keyring#readme
- Issues: https://github.com/BitbossIO/keyring/issues
- npm.io page: https://npm.io/package/@keyring/cbor-plugin

## Dependencies (3)

- [borc](https://npm.io/package/borc.md) ^2.1.0
- [@keyring/util](https://npm.io/package/@keyring/util.md) ^0.2.0
- [@keyring/plugin](https://npm.io/package/@keyring/plugin.md) ^0.2.0

## Recent versions

- 0.2.1 (latest) — 2020-05-07
- 0.2.0 — 2020-02-04
- 0.1.6 — 2019-09-16
- 0.1.5 — 2019-09-10
- 0.1.4 — 2019-06-29
- 0.1.2 — 2019-06-28
- 0.1.1 — 2019-06-28
- 0.0.19 — 2019-06-05
- 0.0.18 — 2019-05-24

## README

# `@keyring/cbor-plugin`

This plugin allows you to easily insert CBOR encoded data into a transaction.  When using this plugin a cbor method is added to the Keyring Transaction class.

## Usage

```
const BSV = require('@keyring/bsv');
const cborPlugin = require('@keyring/cbor-plugin');

const Transaction = BSV.Transaction;
Transaction.use(new cborPlugin());

let tx = new Transaction();
tx.cbor({ hello: 'world' });
console.log('data', tx.data()[0]);
```

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