UNPKG

@tokens-studio/graph-engine

Version:

An execution engine to handle Token Studios generators and resolvers

24 lines 719 B
import { Node } from '../../programmatic/node.js'; import { StringSchema } from '../../schemas/index.js'; /** * This node converts a string to lowercase */ export default class NodeDefinition extends Node { static title = 'Lowercase'; static type = 'studio.tokens.string.lowercase'; static description = 'Converts a string to lowercase'; constructor(props) { super(props); this.addInput('value', { type: StringSchema }); this.addOutput('value', { type: StringSchema }); } execute() { const { value } = this.getAllInputs(); this.outputs.value.set(value.toLowerCase()); } } //# sourceMappingURL=lowercase.js.map