Export a workflow in JS instead of JSON


I was wondering if it could be a nice thing to export / import a workflow in JavaScript instead of JSON.
In our team, we are making several workflows, but we are committing in a git repository.
We are trying to review the evolutions of workflows, by reading the code, but we are using several Function nodes, and the code inside these nodes are inlined.

It’s hard to review it, so I was thinking than in a JavaScript export, with a template string for the Function code (or FunctionItem), it could be nice.

I think I can manage to export the workflow by the API too, and transform the JSON file in a JS file, but, well, if my need talks to others, maybe it would be better to integrate it in n8n ?