New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sswahn/dynamo

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

@sswahn/dynamo

This library simplifies common DynamoDB CRUD operations, providing a seamless and intuitive experience.

  • 1.0.0-beta.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Dynamo · License npm version

This library simplifies common DynamoDB CRUD operations, providing a seamless and intuitive experience.

Features

  • Seamless CRUD Operations: Perform Create, Read, Update, and Delete operations with minimal effort. The library streamlines DynamoDB interactions.
  • Automatic Type Handling: The library intelligently interprets JavaScript types and seamlessly translates them to DynamoDB-compatible formats.
  • Robust Error Handling: The library incorporates robust error handling. Receive clear and actionable error messages for quick troubleshooting.

Installation

Using npm.

npm install @sswahn/dynamo

Usage

Import

import dynamo from '@sswahn/dynamo'

Create

Add items to your DynamoDB table. DynamoDB data types are automatically handled so no need to use properties such as S, or N, etc.

const response = await dynamo.create(data)

Read

Retrieve items from your DynamoDB table. Optionally, set a limit for the scan to control the number of returned items.

const response = await dynamo.read(limit)

Read One

Retrieve an individual item from your DynamoDB table using its key.

const response = await dynamo.readOne(key)

Update

Update attributes of existing items in your DynamoDB table. Specify the attributes to update and the key of the item to modify.

const response = await dynamo.update(data, key)

Remove

Delete an item from your DynamoDB table. Provide the key of the item to remove.

const response = await dynamo.remove(key)

Environmental Variables

Ensure the following environmental variables are set:

  • TABLE_NAME: The name of your DynamoDB table.

License

Dynamo is MIT Licensed

Keywords

FAQs

Package last updated on 12 Nov 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc