@will-stone/title-casedeprecated

Lodash addon that converts a string to title case

Usage no npm install needed!

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

README

DEPRECATED

Please use tings/toTitleCase instead.


Title Case

A Lodash addon to convert a string to title case.

titleCase('this is an example of title case')
// > This is an Example of Title Case

Install

yarn add @will-stone/title-case
# or
npm i @will-stone/title-case

Development

Install dependencies:

yarn

Run test suite:

yarn test
# or
yarn test --watch

Publishing

yarn release

NB: this calls the version script first, which builds the project. If this is not done, the version in the pkg (build) directory will not have the chosen version number and will fail due to trying to publish the same version.