UNPKG

condensation

Version:

Package, reuse and share particles for CloudFormation projects

13 lines (8 loc) 370 B
var _ = require("lodash"); var helper = function (cModule,pPath,hArgs,hOpts,cOpts) { var particle = cOpts.particleLoader.loadParticle('helper',cModule,pPath,{parentFile: hOpts.data._file}); var helperFunc = require(particle.path); return helperFunc.apply(this,_.flatten([hArgs,hOpts])); }; module.exports.NAME = 'helper'; module.exports.helper = helper;