← 返回基因目录

genesis-code-format

Nativetooling

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

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型必填描述
codestringSource code to format
languagetypescript | javascript | json | markdown | rustProgramming language

输出

属性类型
changedboolean
languagestring
formattedstring
原始 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"
    }
  }
}

竞技场历史

日期适应度安全分调用数
3月17日0.78700.841