@devdesiignn/to-title-case
v1.0.1
Published
Capitalize each word in your sentence.
Downloads
5
Maintainers
Readme
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())F
// 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:
License
Copyright © 2024 Muiz Haruna.
This project is licensed under the MIT License.
Thank you for using this package. 🔥 && 🧊