2.0.0 • Published 3 years ago

title-casing v2.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

title-casing

Ever used Python before? If you have you'll know that Python has a built in function for string manipulation called .title(). It's very helpful but if you've ever used JavaScript you'd have noticed you only have .toLowerCase() and .toUpperCase(). Well look no further because I have solved all of your issues!!

What is title case?

let normalString = "thiSIsAString";
let titleString = "Thisisastring";

Uses?

String manipulation and I'm sure you'll find more uses.😀

Example usage

import { toTitleCase } from "./index.js";

let output = toTitleCase("stRing");

In this example we give a string to the function and it will convert it too title case and after that we can store the output in a variable to use elsewhere.

Outcome: String

The outcome is shown above.

2.0.0

3 years ago

1.0.0

4 years ago