npm

Need private packages and team management tools?Check out npm Orgs. »

string-title-case

3.0.0 • Public • Published

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

install

npm i string-title-case

Downloadsweekly downloads

1

version

3.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability