Socket
Socket
Sign inDemoInstall

beedi

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    beedi

Make Api's using aws lambda and DI


Version published
Maintainers
1
Install size
8.81 kB
Created

Readme

Source

BeeDI / 🐝 DI

BeeDI is an opinionated and lightweight library of helpers for building lambdas. It helps you build tidy and testable lambda functions. It simplifies interfacing with aws event sources by limiting and preparsing the input. The aim is to support all the most common event sources.

Simple Example

import { jsonapi } from 'beedi';

async function main(event) {
  // The handler just contains the logic.
  // event.body has been json parsed.
  return {
    message: 'I get json stringified'
  }
}

export const handler = jsonapi(main);

Why choose BeeDI

Its super early days. BeeDI is not used in production anywhere and is just a fun hobby project. I would not recomend using this in production. If you want something with a similar style but more feature complete, better tested, and well maintained check out https://middy.js.org/ and https://laconiajs.io/.

With that disclamer out the way beedi does have some upsides.

  • It's really lightweight.
  • It has no external dependencies.
  • The interface is really simple. Each helper takes an object that contains just a couple of parameters.
  • No legacy bagage. No support for callbacks. This means less work to maintain it and it is much lighter. This also could be considered a bad thing.
  • The internal code is very low abstraction and very simple. Take a peek under the hood. There really is very little magic to make this happen.

If you give it a try let me know by leaving a star

Table of Contents

Installation

Requirements

Options

Testing

Contributions

FAQs

Last updated on 12 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc