1.1.0 • Published 3 years ago
@artsy/to-title-case v1.1.0
Title
This package correctly capitalizes your titles as per The Chicago Manual of Style.
Usage
Firstly, install the package:
npm install @artsy/to-title-case
# or
yarn add @artsy/to-title-case
Then load it and convert any input:
import { toTitleCase } from "@artsy/to-title-case"
toTitleCase("hello name")
// Will result in:
// "Hello Name"
That's it!