Namespace: string

string

Methods

(static) capitalize(string) → {String}

Parameters:
Name Type Description
string String
Source:
See:
  • App.helpers.string.ucfirst
Returns:
Type
String

(static) excerpt(text, maxLength) → {String}

Will crop the text to fit the maxLength provided. Will try to not break any words and add "..." on the end of the string
Parameters:
Name Type Description
text String
maxLength Number
Source:
Returns:
Type
String

(static) resolveUrl(url, basePath) → {String}

Add basepath if isn't complete Consider a complete url when it contains '//' Examples of complete urls: http://google.com https://google.com //google.com Examples of incomplete urls: google.com google users/create /users/create
Parameters:
Name Type Description
url String
basePath String basepath to be used, with protocol
Source:
Returns:
Type
String

(static) ucfirst(string) → {string}

Makes string capitalized
Parameters:
Name Type Description
string String
Source:
Returns:
Type
string

(static) ucwords(string) → {string}

Makes every word from string capitalized
Parameters:
Name Type Description
string String
Source:
Returns:
Type
string