0.0.8 • Published 12 years ago

pretty-camel v0.0.8

Weekly downloads
109
License
-
Repository
github
Last release
12 years ago

Pretty Camel

Node module to prettify camel cased strings. Here are few examples of prettification.

  • procedureCode -> Procedure Code
  • hospitalCPTCode -> Hospital CPT Code
  • eatAHotdog -> Eat A Hotdog
  • procCodeA938 -> Proc Code A938
  • procA39BCode -> Proc A39B Code

Rules

The following rules are applied to input strings:

  • Words separated by uppercase letters, numbers, underscores, dashes, and periods
  • Each word is separated by a space
  • A sequence of capital letters and numbers is considered to be one word

Sample Usage

var prettyCamel = require("pretty-camel");
var input = "hospitalCPTCode";
var output = prettyCamel(input);

console.log(output);

The outputs is Hospital CPT Code

0.0.8

12 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago