# fabric-sdk-node-mongodb-kvs

> MongoDB KeyValueStore implementation for Fabric Node.js SDK

Latest version **0.3.0** (published 2021-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install fabric-sdk-node-mongodb-kvs
pnpm add fabric-sdk-node-mongodb-kvs
yarn add fabric-sdk-node-mongodb-kvs
bun add fabric-sdk-node-mongodb-kvs
```

## 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.3.0 |
| Published | 2021-09-27 |
| First published | 2018-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ken Chen |
| Maintainers | chengusky |
| Keywords | fabric-ca, fabric-sdk-node, mongodb, kvs |

## Links

- npm: https://www.npmjs.com/package/fabric-sdk-node-mongodb-kvs
- Repository: https://github.com/kenspirit/fabric-sdk-node-mongodb-kvs
- Issues: https://github.com/kenspirit/fabric-sdk-node-mongodb-kvs/issues
- npm.io page: https://npm.io/package/fabric-sdk-node-mongodb-kvs

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^4.3.2
- [mongodb](https://npm.io/package/mongodb.md) ^4.1.2

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.3.0 (latest) — 2021-09-27
- 0.2.1 — 2021-05-06
- 0.2.0 — 2019-07-19
- 0.1.1 — 2018-08-03
- 0.1.0 — 2018-07-18

## README

# fabric-sdk-node-mongodb-kvs

MongoDB KeyValueStore implementation for Fabric Node.js SDK

## Install

```bash
npm i fabric-sdk-node-mongodb-kvs
```

## Configuration & Usage in SDK

```javascript
const Client = require('fabric-client')

Client.setConfigSetting('key-value-store', 'fabric-sdk-node-mongodb-kvs')

// Create KeyValuieStore using the MongoDB options
Client.newDefaultKeyValueStore({
  url: 'mongodb://localhost:27017',
  dbName: 'app',
  collectionName: 'credential'
})

// Create CryptoKeyStore using the MongoDB options
Client.newCryptoKeyStore({
  url: 'mongodb://localhost:27017',
  dbName: 'app',
  collectionName: 'crypto'
});

// Have fun with Fabric
```

## Test

```bash
npm run test
```

---
_Source: https://npm.io/package/fabric-sdk-node-mongodb-kvs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
