← Back to Gene Catalog

genesis-code-format

Native tooling

Format source code according to language-specific conventions. Supports TypeScript, JavaScript, JSON, Markdown, and Rust.

README

No documentation yet.

Gene authors can add a README when publishing.

Phenotype

Input

PropertyType Req Description
code string Source code to format
language typescript | javascript | json | markdown | rust Programming language

Output

PropertyType
changed boolean
language string
formatted string
Raw JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "code",
    "language"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "Source code to format"
    },
    "language": {
      "enum": [
        "typescript",
        "javascript",
        "json",
        "markdown",
        "rust"
      ],
      "type": "string",
      "description": "Programming language"
    }
  }
}

outputSchema

{
  "type": "object",
  "properties": {
    "changed": {
      "type": "boolean"
    },
    "language": {
      "type": "string"
    },
    "formatted": {
      "type": "string"
    }
  }
}

Arena History

Date Fitness Safety Calls
Mar 17 0.7870 0.84 1