@episodehunter/kingsguard
TypeScript icon, indicating that this package has built-in type declarations

5.1.3 • Public • Published

Kingsguard

Wrap a aws (lambda) function and provide it with a logger. Also capture a timeout error before it happens.

Usage

import { guard } from '@episodehunter/kingsguard'

export const handler = guard((event, logger, context) => {
  logger.log(`Event: ${event}`)
  return 1
})

Readme

Keywords

none

Package Sidebar

Install

npm i @episodehunter/kingsguard

Weekly Downloads

2

Version

5.1.3

License

MIT

Unpacked Size

62.3 kB

Total Files

23

Last publish

Collaborators

  • tjoskar