Skip to main content

Transformer

A wrapper for a data transformer, used with the transformer service

Properties​

NameDescriptionType
categoryThe category of this script, e.g. ETLString
descriptionA description of what this script doesString
filenameThe filename of this scriptString
outputFormatAn optional output format, e.g. application/xml, text/html, text/csvString
scriptThe script textString
scriptTypeThe type of this script, e.g. one of [odsl, mustache, py, css, html, js, mjs, cjs]String

Methods​

NameDescriptionReturn Type
loadFrom(file)Load the script from a local fileVoid
run()Runs this scriptVoid
run(globalContext)Runs this scriptVoid