Chuyển tới nội dung chính

Cài đặt

npm install @powerduck/workspace-yaml

Phụ thuộc ngang hàng (được cài đặt tự động):

  • @powerduck/conf-patch — ghi nguyên tử và khóa tệp
  • @powerduck/openapi-parser — xác thực và nâng cấp OpenAPI
  • yaml — phân tích cú pháp và tuần tự hóa YAML

Điểm vào​

Đường dẫn nhậpMô tả
@powerduck/workspace-yamlLớp tệp (Node.js / Electron): createWorkspaceApi, initializeWorkspace, initializeOpenApi
@powerduck/workspace-yaml/coreLớp lõi (dùng được trong trình duyệt): createWorkspaceYaml, createOpenApiYaml, createWorkspaceWithApi, parseWorkspaceYaml