UNPKG

@tokens-studio/graph-engine

Version:

An execution engine to handle Token Studios generators and resolvers

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