json-render directives 0.19

Interactive explorer for the seven prebuilt directives in @json-render/directives. Pick a directive, tweak inputs, see the rendered output and copy the JSON spec fragment.

Spec fragment



  

Rendered output

All seven directives at a glance

NamePurpose
$formatIntl date / currency / number / percent (plus relative dates)
$mathadd, subtract, multiply, divide, mod, min, max, round, floor, ceil, abs
$concatJoin an array of dynamic values into a string
$countLength of array or string (0 otherwise)
$truncateTruncate to length with optional suffix
$pluralizeSingular / plural / zero selection with count prefix
$joinJoin array with separator (default ", ")

Plus createI18nDirective(config) for $t translation, and standardDirectives for one-line registration.