KScript docs
EN

base64 fields and methods

A field is a plain fact about the value, read with a dot and no brackets: $value.name. A method takes arguments or does work, and is called with ->: $value->name(arguments), or with the value piped in: $value |> name(arguments).

Fields

FieldTypeDescription
.bytesnumberHow many bytes it holds.

From KScript.Core

#base64->decode() → string

The text it holds (read as UTF-8).
Example
<let name="x" type="base64" value="'aGVsbG8gd29ybGQ='" />
<echo>{ $x->decode() }</echo>
$x: base64 = 'aGVsbG8gd29ybGQ='
echo $x->decode()

Methods from any

Methods from string