Useful extensions to the javascript String object. This directly extends String.prototype
so you can access all these as though they were native functions.
myStr.capitalise();
Capitalises the first letter of each word.
myStr.underscore();
Converts spaces, hyphens and camelCasing to underscores, all in lower case.
myStr.deUnderscore();
Replaces underscores with spaces, all lower case.
myStr.hyphenate();
Converts spaces, underscores and camelCasing to hyphens, all in lower case.
myStr.deHyphenate();
Replaces hyphens with spaces, all lower case.
myStr.camelCase();
Converts spaces, underscores and hyphens to camelCasing.
myStr.deCamelCase();
Replaces camelCasing with spaces, all lower case.
Not yet implemented.