UNPKG

@spalger/kibana

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

17 lines (15 loc) 367 B
define(function (require) { require('ui/modules') .get('kibana') .filter('label', function () { return function (str) { var words = str.split(' '); return words.map(capFirst).join(' '); }; }); function capFirst(str) { var i = str[0]; var r = new RegExp(i, 'i'); return str.replace(r, i.toUpperCase()); } });