0.1.2 • Published 9 years ago

api-lambda-reverse-string v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

node-api-lambda-reverse-string

AWS API gateway compatible AWS Lambda module for reversing a string.

This module exists mainly for testing purposes.

Expects to be called through the exported handler -function:

var result = require("api-lambda-reverse-string").handler( event, context )

Expects event to contain attribute "string":

{
    "string" : "my fancy string"
}

Expects context to have a function called "done":

{
    "done" : function( error, result ) {
        ...
    }
}

On success calls "done" with a null error and the reversed string:

"gnirts ycnaf ym"

On error calls "done" with an error:

new Error( "Event attribute 'string' did not exist or was not of type string" )
0.1.2

9 years ago

0.1.1

9 years ago