UNPKG

serverless-plugin-sandwich

Version:

Wrap, pipe or inline your lambdas with other defined functions

17 lines (12 loc) 325 B
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 };