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

11 lines (9 loc) 259 B
var _ = require('lodash'); // Turns thisIsASentence to // This Is A Sentence module.exports = function toTitleCase(name) { return name .split(/(?=[A-Z])/) .map(function (word) { return word[0].toUpperCase() + _.rest(word).join(''); }) .join(' '); };