NPM module - izara-shared: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:
  *
  *
  * @returns {string} String formatted as a string set for Dynamo
  * @returns {string} String formatted as a string set for Dynamo
*/
</syntaxhighlight>
= configSharedLib =
Helper functions for Config tables.
== configSharedLib.getConfigValue ==
<syntaxhighlight lang="JavaScript">
/**
* @param {string} configTag
* @param {string} configKey
*
* @returns {Object} returns the configValue for a single config record, or null if none found
  */
  */
</syntaxhighlight>
</syntaxhighlight>

Revision as of 11:17, 30 January 2021

Overview

Shared libraries

dynamodbSharedLib

Helper functions for interacting with DynamoDB resources.

dynamodbSharedLib.createStringSet

/**
 * Creates a string set element for use with documentClient
 * @param {string[]} stringSet
 *
 * @returns {string} String formatted as a string set for Dynamo
 */

configSharedLib

Helper functions for Config tables.

configSharedLib.getConfigValue

/**
 * @param {string} configTag
 * @param {string} configKey
 *
 * @returns {Object} returns the configValue for a single config record, or null if none found
 */