Skip to content

Axorax/make-titlecase.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

make-titlecase.js

Convert strings and arrays to title case

⚙️ Installation

npm i make-titlecase

📖 Usage

▸ Import

// ES6
import makeTitleCase from "make-titlecase";

// commonjs
const makeTitleCase = require("make-titlecase");

▸ Examples

// with string
makeTitleCase("hello world");
// Hello World

// with arrays
makeTitleCase(["hey there", "how are you?"])
// ["Hey There", "How Are You?"]

Make sure to console.log() the values to see the output!


Support me on PatreonCheck out my socials