1.0.5 • Published 7 years ago
proper-case v1.0.5
proper-case
Proper cases personal names.
Installation
npm install proper-case --save
Usage
properCase('string'); //=> "String"
Some benefits include:
- fewer string transformations during datastore retrieval
- proper casing up front rather than across multiple applications
- 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