Socket
Book a DemoInstallSign in
Socket

dynamodb-streams-via-proxy

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-streams-via-proxy

Proxies requests to a local dynamodb instance (dynalite or dynamodb local) and emits events for INSERTS, UPDATES and REMOVES. This makes it easier to mock dynamodb streams for local development.

1.0.4
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

dynamodb-streams-via-proxy

Proxies requests to a local dynamodb instance (dynalite or dynamodb local) and emits events for INSERTS, UPDATES and REMOVES. This makes it easier to mock dynamodb streams for local development.

Getting Started

Run npm i dynamodb-streams-via-proxy

Example usage

const dynamodbStreamProxy = require('dynamodb-streams-via-proxy');
const streamProxy = await dynamodbStreamProxy();
streamProxy.emitter.on("event", (record => {
	// record is a single change
});

await streamProxy.server.close()

dynamodbStreamProxy takes the following options

  • dbPort - the port of your local dynamodb instance. Defaults to 8000
  • dbRegion - the region of the local dynamodb instance. Defaults to process.env.AWS_REGION
  • proxyPort - the endpoint clients should make requests to. Defaults to 5000

Keywords

fake

FAQs

Package last updated on 02 Apr 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.