For the complete documentation index, see llms.txt. This page is also available as Markdown.

Supported Languages

Learn about the languages supported by Laminar

Our platform currently supports two programming languages for data transformations:

Python

When using Python, write your code as a function:

def functionName(data):
    # Your flow logic here
    return result

JavaScript

When using JavaScript, write your code as a named lambda function:

(data) => {
    // Your flow logic here
    return result
}

Available JavaScript Imports

The following libraries can be used directly when using JavaScript to edit flows without requiring additional import statements.

  • lodash (as _)

(data) => {
    // Group users by role
    const groupedUsers = _.groupBy(data.input.users, 'role');
    
    // Get only active users
    const activeUsers = _.filter(data.input.users, {isActive: true});
    
    return {
        groupedUsers,
        activeUsers
    };
}
  • date-fns: { format, parseISO }

Last updated

Was this helpful?