This is a collection of utility functions that may be useful if you are working with AWS Lambda, and especially if you prefer promises over callbacks.
The code is primarily a set of autonomous functions that you can import and use in your code. They are all well-tested, small, and stable. Here's an example of how you would use them:
var handler = require('silvermine-lambda-utils/callPromiseFunctionIgnoreResolvedValueHandler'),
MyService = require('./MyService');
module.exports = {
handler: function(evt, context, cb) {
var svc = new MyService();
handler(svc.doSomething.bind(svc), context, cb);
},
};
We genuinely appreciate external contributions. See our extensive documentation on how to contribute.
This software is released under the MIT license. See the license file for more details.