Helpers module is a set of utilities
Members
-
innerCryptor
-
Encryption and decryption library that works in node.js, browser and native(react-native)
- See:
- TODO
-
- Build helper functions out of this
Methods
-
inneraddHistory(newHistoryItem, historyItems){array}
-
Name Type Description newHistoryItem
string The new history item to add
historyItems
array Existing history items
- See:
-
historySize
for default history size
Returns:
Type Description array returns history items trimmed to their max size with the new item appended -
innerclient(){object}
-
Wrapper for two
axios
library methods:client.get(url)
andclient.post(url, params)
- See:
-
- https://www.npmjs.com/package/axios for usage
Returns:
Type Description object returns object from network request -
innerfiler(name, prefix){string}
-
Name Type Description name
string Path to prefix
prefix
string Prefix
Returns:
Type Description string returns path with prefix applied -
innerinitialsAvatar(name, colors, size){object}
-
Name Type Description name
string full name or username to generate avatar initials from
colors
array color palette to use. See
defaultAvatarColors
for defaultsize
string size of avatar. See
avatarSize
for defaultReturns:
Type Description object returns {content, style}
, where content is string of initials and style is style of avatar