UNPKG

@wmfs/tymly

Version:

A framework for building and sharing workflows in Node.js

11 lines (9 loc) 301 B
'use strict' module.exports = function getFunction (options, funcName) { const services = options.services || options.bootedServices const func = services.functions.functions[funcName] if (!func) { throw new Error(`Function '${funcName}' not registered`) } return func.func }