DataTransformer Quick Reference

Transform text and data using JavaScript with visual editor

Key Features Helper Functions: // Convert data to lines var lines = DT.toLines(data, rowSeparator); // defaults: input, "\n" // Lines to string var str = DT.linesToString(lines, separator); // default separator: "\n" // Apply function to each line var result = DT.forEachLine(function(line) { return line.toUpperCase(); }, data); // Convert to table (2D array) var table = DT.toTable(data, rowSeparator, cellSeparator); // defaults: "\n", "\t" // Table to string var str = DT.tableToString(table, rowSeparator, cellSeparator); // Constants DT.NL // newline character DT.TAB // tab character Transformation Script: // Input text available as 'input' variable // Set 'output' variable with transformed result output = input.toUpperCase(); // Simple example The data transformer takes text from the input and transforms it using JavaScript, then places it in the output. No data is shared or sent to our server unless you choose to save it. Examples: