blob: c4a8a47090dc078843322d6c9cf628be789e030c [file] [log] [blame]
var makeString = require('./helper/makeString');
module.exports = function titleize(str) {
return makeString(str).toLowerCase().replace(/(?:^|\s|-)\S/g, function(c) {
return c.toUpperCase();
});
};