AWS Lambda Utility Library
Clone or download
Prefinem Merge pull request #28 from Prefinem/greenkeeper/babel-eslint-10.0.0
Update babel-eslint to the latest version πŸš€
Latest commit ec90234 Sep 26, 2018

README.md

lambdify

npm pack age

Version Build Status

Maintainability Test Coverage Greenkeeper badge

Weekly Downloads Monthly Downloads Yearly Downloads

Issues Pull Requests

Dependencies Dev Dependencies

Lambdify is a set of tools that makes building and consuming AWS Lambda functions easier.

NOTICE

WARNING: Version 3.0.0 is for Node 8.10 or greater

These docs are awful. If you are interested in using one of the library and need some help, please create an issue and I will work on the docs for that first. Thanks

Getting Started

ES6 Imports

import { run } from 'lambdify';

const helloWorld = (request) => {
	return `Hello User, I see that you are coming from IP: ${request.ip}`;
};

exports.handler = (event, context) => run(event, context, helloWorld);

Old School

const lambdify = require('lambdify');

function helloWorld(request) {
	return 'Hello User, I see that you are coming from IP: ' + request.ip;
}

exports.handler = (event, context) => lambdify.run(event, context, helloWorld);

Installation

npm i lambdify

or

yarn add lambdify

API Docs

DOCS