0.1.3 • Published 6 years ago
string-totitlecase v0.1.3
string-totitlecase
NOTE: string-totitlecase was renamed to @extra-string/to-title-case.
Convert string to title case.
const toTitleCase = require('string-totitlecase');
// toTitleCase(<string>, [separator=/\W+/g])
toTitleCase('Geminid meteor shower')
// 'Geminid Meteor Shower'
toTitleCase('geminid-meteor-shower');
// 'Geminid Meteor Shower'
toTitleCase('geminid_meteor_shower', '_');
// 'Geminid Meteor Shower'