Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

123 Commits

Repository files navigation

@nrfcloud/lambda-helpers

https://www.npmjs.com/package/@nrfcloud/lambda-helpers

Helper functions for AWS Lambda functions used in nRF Cloud.

Install with NPM

npm i (--save-prod|--save-dev) @nrfcloud/lambda-helpers

Usage

import{MetricUnit}from"@aws-lambda-powertools/metrics";import{logMetrics}from"@aws-lambda-powertools/metrics/middleware";importmiddyfrom"@middy/core";import{metricsForComponent}from"@nrfcloud/lambda-helpers";const{ track, metrics }=metricsForComponent("my-function","my-service");exportconsthandler=middy().use(logMetrics(metrics)).handler(async()=>{track("some:metric",MetricUnit.Count,1);});

TypeScript 6 and 7

This repo runs TypeScript 6 and 7 side by side, so that eslint works.

About

Helper functions for AWS Lambda functions used in nRF Cloud.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages