Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.43 KB

README.md

File metadata and controls

47 lines (27 loc) · 1.43 KB

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. 🔥 && 🧊