Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
amplify-dynamodb-simulator
Advanced tools
Readme
This package contains wrapper logic to download and use the dynamodb emulator.
This package automatically (on install) downloads the latest dynamodb emulator.
Much of the logic in this package is around retrying to start the server. This can be an issue when using jest and there is contention when binding a port.
const emulator = require('amplify-dynamodb-simulator');
async function main() {
// start the emulator
const emu = await emulator.launch({
/* options */
});
// by default we launch the emulator on some open port in the ephemeral range in the 'inMemory' mode.
// get the dynamodb client (aws-sdk)
const dynamodb = emulator.getClient(emu);
}
port
Port to bind the emulator to. If omitted will bind to the first available port in the ephemeral range.
default: null
sharedDb
If to use a single database file to use in the emulator. Should typically be left on.
default: true
dbPath
Where to launch the database. Will automatically create this directory if missing.
deafult: null
startTimeout
Maximum amount of time to wait for the dynamodb emulator to start listening on it's chosen port.
default: 5000
FAQs
DynamoDB emulator nodejs wrapper
The npm package amplify-dynamodb-simulator receives a total of 50,184 weekly downloads. As such, amplify-dynamodb-simulator popularity was classified as popular.
We found that amplify-dynamodb-simulator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.