string-title-case
v3.0.0
Published
Capitalises first character of each word in string except words from an exclusion array.
Downloads
47
Maintainers
Readme
StringTitleCase - JavaScript
Capitalises first character of each word in string except words from the exclusion array.
Installation
npm install string-title-case
Usage
const titleCase = require('string-title-case');
const myString = 'This messAge IS the best!';
const myTitleCasedString = titleCase(myString, ['is', 'the']);
console.log(myTitleCasedString); // 'This Message is the Best!'