# mmdynamo

> The official C8 Dynamo JavaScript driver.

Latest version **0.3.0** (published 2021-01-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install mmdynamo
pnpm add mmdynamo
yarn add mmdynamo
bun add mmdynamo
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2021-01-07 |
| First published | 2020-09-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Macrometa |
| Maintainers | macrometa |
| Keywords | mmdynamo, c8, dynamodb, client, driver, api, http, rest |

## Links

- npm: https://www.npmjs.com/package/mmdynamo
- Repository: https://github.com/macrometacorp/mmdynamo
- Issues: https://github.com/macrometacorp/mmdynamo/issues
- npm.io page: https://npm.io/package/mmdynamo

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2021-01-07
- 0.2.0 — 2020-09-15
- 0.1.0 — 2020-09-09

## README

# mmDynamo

Macrometa DynamoDB client for CloudFlare & Edge Workers.

## Installation

With [npm](http://npmjs.org/) do:

```
npm install mmdynamo
```

Or you can also reference different formats straight from unpkg.com:

[ES Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import):

https://unpkg.com/mmdynamo@0.2.0/dist/mmdynamo.esm.js

[UMD](https://github.com/umdjs/umd):

https://unpkg.com/mmdynamo@0.2.0/dist/mmdynamo.umd.js

[CommonJS](https://requirejs.org/docs/commonjs.html):

https://unpkg.com/mmdynamo@0.2.0/dist/mmdynamo.cjs.js

## Initializing macrometa dynamodb

```js
import Client from "mmdynamo";

const client = new Client({
  agent : "fetch",
  apiKey : "xxxx",
  federationUrl : "http://xxx.xxx.macrometa.io",
  absoluetPath : true // this is an optional parameter to be passed when you want to use the endpoint as it is
});
```

### Create Table

```js
const response = await client.createTable();
console.log(response);
```





### List Tables

```js
const response = await client.listTables();
console.log(response);
```

### Put Item

```js
const response = await client.putItem({...});
console.log(response);
```

### Get Item

```js
const response = await client.getItem({...});
console.log(response);
```

### Delete Item

```js
const response = await client.deleteItem({...});
console.log(response);
```

### Delete Table

```js
const response = await client.deleteTable({...});
console.log(response);
```



For payload reference read [API Reference.](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Operations_Amazon_DynamoDB.html)

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