dtl-js
Version:
Data Transformation Language - JSON templates and data transformation
106 lines (103 loc) • 3.54 kB
JSON
[
"?( condition true_expression false_expression)",
"@( [ $label ] $data_item )",
"&( $data_item1 $data_item2 [ $data_item3 ... ] )",
"empty( $data_item )",
"exists( $data_item )",
"group( $items $bucket_name_transform [ $value_transform ] )",
"explode( $string )",
"first( $array [ $transform ] )",
"grep( $array_or_object $search_transform [ $value_transform ] [ $extra ])",
"derive( $data $action_map )",
"chain( $data $transform_chain)",
"fne( $item1 $item2 $item3 ...)",
"now( $seconds_only )",
"strftime( $time_format $time_since_epoch [ $timezone ] )",
"random_string( $template [ $charmap ] )",
"keys( $object )",
"length( $item )",
"url_encode( $string )",
"url_decode( $encoded_string )",
"escape( $string [ $characters ] )",
"regex( $pattern [ $flags ] )",
"replace( $string $search $replacement )",
"match( $string $search )",
"merge_into( $object $keypath $data )",
"flatten( $array_or_object [ $separator ] [ $prefix ] )",
"unflatten( $object [ $separator ])",
"sort_by( $array $extractor )",
"sort( $array $comparison )",
"reverse( $array_or_string )",
"split( $string $regexp )",
"join( $array $separator )",
"inject( $object $object_to_merge )",
"substr( $string $start $end )",
"typeof( $thing )",
"uuid([ $version ] [ $name ] [ $namespace ])",
"transform($input $transform_or_expression)",
"values( $object )",
"lc( $string )",
"uc( $string )",
"capitalize( $string )",
"sprintf( $formatstring [$args...] )",
"tofixed( $number $precision $as_string)",
"bignumber_clean( $thing $use_strings )",
"from_json( $json_string )",
"to_json( $value_or_object $pretty $preserve_undefined $bignumbers_as_strings)",
"segment( $array [$group_size $start $end ] )",
"head( $array $n )",
"tail( $array $n )",
"extract( $input_data [ keys to extract ] )",
"pairs( $object )",
"map( $input_data $transform [ $extra ])",
"reduce( $input_data $transform [$memo])",
"intersection( $list_a $list_b)",
"union( $list_a $list_b)",
"difference( $list_a $list_b)",
"member( $list $item)",
"subset( $list_a $list_b)",
"math.abs($number)",
"math.acos($number)",
"math.acosh($number)",
"math.asin($number)",
"math.asinh($number)",
"math.atan($number)",
"math.atan2( $x $y )",
"math.atanh($number)",
"math.cbrt($number)",
"math.ceil($number)",
"math.clz32($number)",
"math.cos($number)",
"math.cosh($number)",
"math.exp($number)",
"math.expm1($number)",
"math.floor($number)",
"math.fround($number)",
"math.hypot( $number [$number...] )",
"math.imul( $a $b )",
"math.log($number)",
"math.log10($number)",
"math.log1p($number)",
"math.log2($number)",
"math.max($array_of_numbers)",
"math.min($array_of_numbers)",
"math.pow( $x $y )",
"math.rand( $max )",
"math.random()",
"math.round($number)",
"math.sign($number)",
"math.sin($number)",
"math.sinh($number)",
"math.sqrt($number)",
"math.tan($number)",
"math.tanh($number)",
"math.trunc($number)",
"math.E()",
"math.LN10()",
"math.LN2()",
"math.LOG10E()",
"math.LOG2E()",
"math.PI()",
"math.SQRT1_2()",
"math.SQRT2()"
]