UNPKG

@danielhaim/titlecaser

Version:

Converts a string to title case with multiple style options, ability to ignore certain words, and handle acronyms

37 lines 542 B
{ "timeRelated": [ "a.m.", "p.m.", "ca.", "cc.", "fig.", "pl.", "pt.", "rev.", "sr.", "v.", "vol.", "et al.", "pp.", "p." ], "academic": [ "adj.", "adv.", "cf.", "cm.", "co.", "corp.", "dept.", "dist.", "ed.", "edn.", "esp.", "etc.", "ex.", "i.e.", "e.g.", "op. cit.", "vs." ] }