@artsy/to-title-case

Capitalizes your titles as per The Chicago Manual of Style

Usage no npm install needed!

<script type="module">
  import artsyToTitleCase from 'https://cdn.skypack.dev/@artsy/to-title-case';
</script>

README

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!