packages/lambda/src/index.js
function findNodeModule(name) {
  return loadModules()
  .then(nodeModules => {
    const nodeModule = _.find(nodeModules, (nodeModule) => { return nodeModule.getName() === name; });
    if (!nodeModule) {
      throw new Error('The node module "' + name + '" does not exists in this Myrmex project');
    }
    return nodeModule;
  });
}
function findNodeModule(name) {
  return loadModules()
  .then(nodeModules => {
    const nodeModule = _.find(nodeModules, (nodeModule) => { return nodeModule.getName() === name; });
    if (!nodeModule) {
      throw new Error('The node module "' + name + '" does not exists in this Myrmex project');
    }
    return nodeModule;
  });
}
function findNodeModule ( name ) { return loadModules ( ) . then ( nodeModules => { const nodeModule = _ . find ( nodeModules , ( nodeModule ) => { return nodeModule . getName ( ) === name ; } ) ; if ( ! nodeModule ) { throw new Error ( 'The node module "' + name + '" does not exists in this Myrmex project' ) ; } return nodeModule ; } ) ; }
Find an node package by its identifier
@param {string} name - the name of the node package
@returns {Array}
Find an node package by its identifier