Skip to content

Transforms

A transform is a named operation applied to a task’s input or output — trimming, extracting, encoding. There are 32 transforms; pick one for its arguments, flags and worked examples.

Transform What it does
base64dec Base64-decode a base64-encoded text/bytes argument into raw bytes.
base64enc Encode data to Base64 format.
cased Convert text casing according to specified style.
cmp Compare 2 arguments and return whether the left hand side is less/greater than or equal
crc16 Generate CRC-16 hash from input string or bytes.
crc32 Generate CRC-32 hash from input string or bytes.
dttm Load current datetime (when no input arg) or a datetime from input arg to native datetime, and optionally
filter Filter out values failing a check from a list of arguments.
htmltoplain Convert HTML content to plain text by stripping all markup and non-displayable content.
http!? Remove specified query parameters from a URL string.
http? Extract a specific query parameter from a URL.
jmespath Extract data from JSON or converting JSON data using JMESPath queries with flexible input handling.
join Join multiple string/bytes/convertible arguments with a separator.
jq Extract data from JSON content using JQ expressions.
keypath Extract data from JSON objects or JSON strings using a keypath expression.
ltrim A TrimTransform variant that only trims chars from leading of string. Other than this bit, it works
md5 Generate MD5 hash digest from input string or bytes.
nonempty Validate that input arguments are non-empty.
pipeline Process a pipeline of mixed transform expressions and arguments.
prefix Add a prefix to text with flexible argument handling.
regex Extract data from text using regular expressions with flexible group joining options.
regsub Perform regex substitutions on text with sed-like syntax.
rtrim A TrimTransform variant that only trims chars from trailing of string. Other than this bit, it works
suffix Add a suffix to text with flexible argument handling.
transmap Map each of multiple arguments using an nested Transform from options string.
trim Trim one or multiple strings, by removing leading and trailing whitespaces from each string.
unprefix Remove a prefix from text (with flexible argument handling) if the prefix exists.
unquote Decode URL-encoded text (percent-encoding).
unsuffix Remove a suffix from text (with flexible argument handling) if the suffix exists.
urljoin Join a base URL with a relative URL path component.
valuemap Perform value mapping using a JSON configuration table with exact and regex matching.
xpath3 Extract data from XML/HTML content using XPath3 expressions.