title-case

Transform a string into title case following English rules

Usage no npm install needed!

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

README

Title Case

NPM version NPM downloads Bundle size

Transform a string into title case following English rules.

Installation

npm install title-case --save

Usage

import { titleCase } from "title-case";

titleCase("string"); //=> "String"
titleCase("follow step-by-step instructions"); //=> "Follow Step-by-Step Instructions"

License

MIT