3.0.0 • Published 7 years ago

string-title-case v3.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

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!'