Formatters
Wrangle wild data types into submission. Spruce up numbers, give strings smarts, and make complex content dazzle.
formatNumber
Format numbers into neat and formatted strings for people
formatCurrency
Format numbers into local currency with extra smarts
formatValuation
Format numbers into valuations displayed in thousands, millions or billions
formatUnit
Format a number into a your unit of choice
formatPercentage
Format a number into a percentage
formatDurationLabels
Format time into a human-readable string
formatDurationNumbers
Format time into duration 00:00:00
formatFileSize
Format and auto calculate file size into human-readable string
formatLength
Format and auto calculate length into human-readable string
formatTemperature
Format and auto calculate temperature into human-readable string
formatNumberToWords
Format numbers into words
formatParagraphs
Formats content into paragraphs with a minimum number of characters per sentence and minimum number of sentences per paragraph
formatInitials
Generate initials from any string while ignoring common titles
formatUnixTime
Format Unix timestamp into a datetime string
formatList
Create a string of comma-separated values from an array, object, or string with an optional limit and conjunction
formatTitle
Converts a string to title case following the Chicago Manual of Style rules.
formatSentenceCase
Format a sentence case string
formatTextWrap
Adds a space between the last two words in a string to prevent lonely words.