0.1.1 • Published 5 months ago

dynamodb-mock v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

DynamoDB Mock

Overview

DynamoDB Mock is a simple and easy-to-use in memory implementation of DynamoDB for testing. It has an Interface compatible with the DynamoDB Document Client.

Installation

npm install dynamodb-mock
pnpm install dynamodb-mock

Usage

import { DynamoDBMock } from "dynamodb-mock";

const db = new DynamoDBMock();

// Use the db as a DynamoDB Document Client
const result = await db.send(
    new GetCommand({ TableName: "my-table", Key: { id: "1" } })
);

Limitations

It does not support all of the DynamoDB Document Client operations.

License

This project is licensed under the MIT License. See the LICENSE file for details.

0.1.1

5 months ago

0.1.0

5 months ago