silvermine / lambda-utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Silvermine Lambda Utilities

NPM Version License Build Status Coverage Status Conventional Commits

What is it?

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.

How do I use it?

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);
   },

};

How do I contribute?

We genuinely appreciate external contributions. See our extensive documentation on how to contribute.

License

This software is released under the MIT license. See the license file for more details.

About

License:MIT License


Languages

Language:JavaScript 100.0%