Skip to content

Capitalize each word in your sentence. Suitable for names, headings, sub-headings, titles.

License

Notifications You must be signed in to change notification settings

devdesiignn/toTitleCase

Repository files navigation

toTitleCase

Capitalize each word in your sentence. Suitable for names, headings, sub-headings, titles.

Follow this project's author, Muiz Haruna, and give the project a star ⭐ to show your appreciation and recommend to your friends.

Install

Install with npm

npm install @devdesiignn/to-title-case

Usage

import "@devdesiignn/to-title-case";

const sentence = "the quick brown fox jumps over the lazy dog";
console.log(sentence.toTitleCase())
// The Quick Brown Fox Jumps Over The Lazy Dog 

---

const sentence = "TYPESCRIPT ADDS TYPE SAFETY TO JAVASCRIPT";
console.log(sentence.toTitleCase())
// Typescript Adds Type Safety To Javascript

Author

Muiz Haruna or DEVDESIIGNN

Connect with me:

Twitter: @dev_desiignn Facebook: @devdesiignnn LinkedIn: @devdesiignn

License

Copyright © 2024 Muiz Haruna.

This project is licensed under the MIT License.

Thank you for using this package. 🔥 && 🧊

About

Capitalize each word in your sentence. Suitable for names, headings, sub-headings, titles.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published