kibana-123
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
16 lines (13 loc) • 317 B
JavaScript
var _ = require('lodash');
module.exports = function (func) {
var functions = {};
functions[func.name] = func;
if (func.aliases) {
_.each(func.aliases, function (alias) {
var aliasFn = _.clone(func);
aliasFn.isAlias = true;
functions[alias] = aliasFn;
});
}
return functions;
};