← Winnitude! Search  ·  Reader Mode (940 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 86 LINKS

GitHub - NamesMT/utils-lambda: Collection of utilities and types targeting AWS Lambda: API Gateway event fakes, gzip/brotli response compression and payload decoding.

Repository navigation

utils-lambda
Public

About

Collection of utilities and types targeting AWS Lambda: API Gateway event fakes, gzip/brotli response compression and payload decoding.

Topics

api-gateway aws aws-lambda compression esm event-parser lambda lambda-handler serverless typescript utilities utils

Resources

Readme MIT license Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


40 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.devcontainer .devcontainer    
.github/ workflows .github/ workflows    
.vscode .vscode    
scripts scripts    
src src    
.gitignore .gitignore    
AGENTS.md AGENTS.md    
CHANGELOG.md CHANGELOG.md    
LICENSE LICENSE    
README.md README.md    
eslint.config.js eslint.config.js    
package.json package.json    
pnpm-lock.yaml pnpm-lock.yaml    
pnpm-workspace.yaml pnpm-workspace.yaml    
renovate.json renovate.json    
tsconfig.json tsconfig.json    
tsdown.config.ts tsdown.config.ts    
vitest.config.ts vitest.config.ts    

Repository files navigation

@namesmt/utils-lambda

@namesmt/utils-lambda is a collection of some useful utilities and types targeting AWS Lambda.

Features

  • TypeScript ready!

Usage

Install package:

# npm
npm install @namesmt/utils-lambda

# yarn
yarn add @namesmt/utils-lambda

# pnpm (recommended)
pnpm install @namesmt/utils-lambda

Import:

// ESM
import { decodeResponse } from '@namesmt/utils-lambda'

Roadmap

  • Become the legendary 10000x developer

Releasing

Releases are version-first and dispatched by hand: one workflow run does the whole release, so a git push on its own never publishes anything.

  1. Go to Actions → Release → Run workflow and give it the version to ship, e.g. 0.2.0.
  2. .github/workflows/release.yml verifies the version, runs pnpm run check, builds, then lets changelogen write the changelog, bump package.json, commit and tag v<version>. It pushes that commit and tag, creates the GitHub release, and publishes to npm with a short-lived OIDC token and --provenance.

Tick dry-run to do everything up to the commit and stop there -- nothing is written back.

Locally, pnpm run release:check <version> validates a version against package.json, and pnpm run release:preview prints the changelog the next release would get.

One-time setup: publish the package once by hand (npm only offers a trusted publisher for a package that already exists), then on npmjs.com enable Settings → Publishing access → Trusted Publishing for namesmt/utils-lambda with the workflow filename release.yml.

License

MIT License © 2024 NamesMT

About

Collection of utilities and types targeting AWS Lambda: API Gateway event fakes, gzip/brotli response compression and payload decoding.

Topics

api-gateway aws aws-lambda compression esm event-parser lambda lambda-handler serverless typescript utilities utils

Resources

Readme MIT license Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks Report repository

Releases

Packages

Used by

Contributors

Languages

Generated from NamesMT/starter-ts