npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@veterancrowd/wrapped-dynamodb-client

v1.6.15

Published

An AWS DynamoDB client wrapped to provide consistent logging and other services.

Downloads

1,832

Readme

WrappedDynamoDbClient

This package wraps the DynamoDB Client - AWS SDK for JavaScript v3 to provide a streamlined developer experience and consistent logging.

API Documentation

wrapped-dynamodb-client.WrappedDynamoDbClient

Wraps an AWS DynamoDB client to provide standard logging & services.

Kind: static class of wrapped-dynamodb-client

new exports.WrappedDynamoDbClient([options])

WrappedDynamoDbClient constructor.

| Param | Type | Description | | --- | --- | --- | | [options] | object | Options. | | [options.logger] | object | Logger instance (default is global console object). Must have info, error & debug methods | | [options.logInternals] | boolean | Log AWS client internals (default is false). | | [options.config] | object | DynamoDBClientConfig object. |

wrappedDynamoDbClient.deleteItem(tableName, key) ⇒ Promise.<object>

Delete an item from a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<object> - WaiterResult object.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | key | object | Item object (only the key is required). |

wrappedDynamoDbClient.deleteItems(tableName, keys) ⇒ Promise.<number>

Delete multiple items from a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<number> - Array of responses from chunked batchWrite operations.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | keys | Array.<object> | Array of item objects (only the key is required). |

wrappedDynamoDbClient.getItem(tableName, key, [attributes]) ⇒ Promise.<object>

Get an item from a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<object> - - GetItemCommandOutput object.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | key | object | Item object (only the key is required). | | [attributes] | string | Array.<string> | Comma-delimited list or string array of attributes to retrieve. |

wrappedDynamoDbClient.purgeItems(tableName, keys) ⇒ Promise.<number>

Purge all items from a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<number> - Total items purged from table.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | keys | Array.<string> | Item keys. |

wrappedDynamoDbClient.putItem(tableName, item) ⇒ Promise.<object>

Put an item into a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<object> - - PutItemCommandOutput object.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | item | object | Item object. |

wrappedDynamoDbClient.putItems(tableName, items) ⇒ Promise.<Array>

Put multiple items into a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<Array> - Array of responses from chunked batchWrite operations.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | items | Array.<object> | Array of item objects. |

wrappedDynamoDbClient.query(tableName, options) ⇒ Promise.<object>

Query items from a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<object> - QueryCommandOutput object.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | options | object | QueryCommandInput object. |

wrappedDynamoDbClient.scan(tableName, options) ⇒ Promise.<object>

Scan items from a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<object> - ScanCommandOutput object.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | options | object | ScanCommandInput object. |

wrappedDynamoDbClient.transactDeleteItems(tableName, keys) ⇒ Promise.<Array>

Delete multiple items from a DynamoDB table as a single transaction.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<Array> - Array of responses from chunked batchWrite operations.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | keys | Array.<object> | Array of item keys. |

wrappedDynamoDbClient.transactPutItems(tableName, items) ⇒ Promise.<Array>

Put multiple items into a DynamoDB table as a single transaction.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<Array> - Array of responses from chunked batchWrite operations.
Category: item

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | items | Array.<object> | Array of item objects. |

wrappedDynamoDbClient.createTable(tableName, [options]) ⇒ Promise.<object>

Create a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<object> - WaiterResult object.
Category: table

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. | | [options] | object | CreateTableCommandInput object. |

wrappedDynamoDbClient.deleteTable(tableName) ⇒ Promise.<object>

Delete a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<object> - - Deletion status
Category: table

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. |

wrappedDynamoDbClient.describeTable(tableName) ⇒ Promise.<object>

Describe a DynamoDB table.

Kind: instance method of WrappedDynamoDbClient
Returns: Promise.<object> - - TableDescription}
Category: table

| Param | Type | Description | | --- | --- | --- | | tableName | string | Table name. |


See more great templates and other tools on my GitHub Profile!