proper-name-fixifier
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

proper-name-fixifier

NPM Version NPM Downloads

A Javascript/TypeScript-friendly library for fixing the capitalization of people's names, but only if they're all upper or lower case. For the most part we don't what to change what a person does since there are A LOT of possibilities.

I highly encourage everyone to look into the test file for a more exhaustive list of test cases. The test also pulls in names from the 116th US Congress (theres over 500 names in there with various languages, accents marks, titles, and even nicknames).

Influenced by Perl's Lingua-EN-NameCase module and Emgee's namecase

Usage

import * as fixifier from 'proper-name-fixifier';

const name = fixifier.fixCase('johnny mnemonic');
// name = Johnny Mnemonic

Readme

Keywords

none

Package Sidebar

Install

npm i proper-name-fixifier

Weekly Downloads

164

Version

0.4.2

License

MIT

Unpacked Size

26.1 kB

Total Files

11

Last publish

Collaborators

  • jmisavage