New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

mmdynamo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mmdynamo

The official C8 Dynamo JavaScript driver.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

mmDynamo

Macrometa DynamoDB client for CloudFlare & Edge Workers.

Installation

With npm do:

npm install mmdynamo

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

ES Modules:

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

UMD:

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

CommonJS:

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

Initializing macrometa dynamodb

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

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

List Tables

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

Put Item

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

Get Item

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

Delete Item

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

Delete Table

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

For payload reference read API Reference.

Keywords

mmdynamo

FAQs

Package last updated on 07 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts