Static ReadonlydefaultThe default number of digits to use for formatting numbers and vectors.
StaticemojiA map from text based smiley to emoji.
StaticknownA set of all emojis registered manually with RSX.
StaticconvertStaticconvertStaticdecodeStaticescapeStaticformatFormats a byte length with "kB", "MB" or "GB" suffixes.
The length to be formatted
a string with the formatted byte length
StaticformatFormats a duration in seconds using days, hours, minutes, and seconds.
The non-negative duration to format, in seconds.
OptionalshortForm: boolean
True to abbreviate unit names.
The formatted duration without relative-date direction words.
StaticformatFormats the number value using the format, an optional suffix can be appended.
The format, e.g. ##000.00
The number to format.
Optionalsuffix: string
The suffix to append.
the formatted value.
StaticformatFormats the given date object using relative dates.
The formatting is done using the following logic:
If the the in the past:
If the the in the future:
The date to be formatted.
Optionalreference: string | Date
The date to use as reference. Optional, and if not set will fallback to the current date.
OptionalupperCase: boolean
True to uppercase the first character.
OptionaluseJustNow: boolean
True to return "just now" for dates less than one minute ago.
StaticgetConverts a name of an identifier (such as a field or a property) into a human readable name.
Identifier to convert.
Human readable name with spaces.
StaticisDetermines if the text is an emoji.
StaticisDetermines if the specified email is a valid email adress in the format [email protected].
The email address to validate
StaticstripRemoves all HTML tags from the input value.
StaticstripRemoves all special characters and white-space from the value and replaces these characters with invalid.
Optionalinvalid: string
The FormattingUtility class provides utility functions for formatting text.