UNPKG

@env0/dynamo-easy

Version:

DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.

14 lines 432 B
/** * @module expression */ /** * @hidden */ export function dynamicTemplate(templateString, templateVariables) { const keys = Object.keys(templateVariables); const values = Object.values(templateVariables); // tslint:disable-next-line:function-constructor const templateFunction = new Function(...keys, `return \`${templateString}\`;`); return templateFunction(...values); } //# sourceMappingURL=util.js.map