serverless-plugin-sandwich
Version:
Wrap, pipe or inline your lambdas with other defined functions
17 lines (12 loc) • 325 B
JavaScript
const node = require('./node');
const python = require('./python');
const createTemplateEngine = (runtime) => {
if (node.isRuntime(runtime)) {
return node;
}
if (python.isRuntime(runtime)) {
return python;
}
throw new Error('Unsupported Runtime', runtime);
};
module.exports = { createTemplateEngine };