Miscellaneous utilities; mainly routines for strings
- Source:
Methods
(inner) formatDuration(duration) → {String}
Format a duration in minutes as a more readable string
- Source:
Parameters:
Name | Type | Description |
---|---|---|
duration |
Number
|
duration, in min (eg, 150) |
Returns:
- Type:
-
String
the equivalent "nice" duration (eg, "1h30'")
(inner) isValidID(string) → {Boolean}
Check if a string is a valid ID for an entity
- Source:
Parameters:
Name | Type | Description |
---|---|---|
string |
String
|
the candidate string |
Returns:
- Type:
-
Boolean
whether the string is valid
(inner) normaliseID(string) → {String}
“Normalise” a string to use it as the ID of an entity
- Source:
Parameters:
Name | Type | Description |
---|---|---|
string |
String
|
the candidate string |
Returns:
- Type:
-
String
the normalised string
(inner) processData(data, the)
Pre-process an entity item, or a list of entity items, to extend information
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data |
Object
|
meeting info |
the |
Object
|
same object, perhaps extended with more info |