proper-case

1.0.5 • Public • Published

proper-case

Proper cases personal names.

Installation

npm install proper-case --save

Usage

properCase('string'); //=> "String"

Some benefits include:

  1. fewer string transformations during datastore retrieval
  2. proper casing up front rather than across multiple applications
  3. keeping user input consistent

Features

  • trims
  • transforms
    • o'brien => O'Brien
    • jo-anne => Jo-Anne
    • dePaola => DePaola
    • ibn al-ahmed => Ibn Al-Ahmed

Requirements

  • assume user input completely disregards case

Package Sidebar

Install

npm i proper-case

Weekly Downloads

96

Version

1.0.5

License

MIT

Last publish

Collaborators

  • pcwitz