brettcase

Title-cases a string using Brett Terpstra's "titlecase" API.

Usage no npm install needed!

<script type="module">
  import brettcase from 'https://cdn.skypack.dev/brettcase';
</script>

README

Brettcase

Build Status

A node.js helper library for accessing Brett Terpstra's Titlecase API. Just a bit of fun.

Getting Started

Brettcase is available as an npm package. Install the latest version with:

npm install brettcase

Usage

Brettcase exposes a single function, which converts a given string to title case using Brett Terpstra's Titlecase API.

The Brettcase function returns a promise. Here's an example of how to use it.

var brettcase = require('brettcase');
brettcase('of mice and men').then(console.log);  // Logs out "Of Mice and Men"