{
  "doc": {
    "id": "api/cypress-api/platform",
    "title": "Cypress.platform",
    "description": "Get the underlying OS name as returned from Node's os.platform() in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/cypress-api/platform.md",
    "version": "29f95bf8bb06f320986f3749f5bf09a35a409eab",
    "updated_at": "2026-09-04T10:49:54.630Z",
    "headings": [
      {
        "id": "api/cypress-api/platform#cypress-platform",
        "text": "Cypress.platform",
        "level": 1
      },
      {
        "id": "api/cypress-api/platform#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/cypress-api/platform#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/cypress-api/platform#conditionals",
        "text": "Conditionals",
        "level": 3
      }
    ]
  },
  "chunks": [
    {
      "id": "api/cypress-api/platform#examples",
      "doc_id": "api/cypress-api/platform",
      "heading": "Examples",
      "heading_level": 2,
      "content_markdown": "## Examples\n\n### Conditionals\n\n```\nit('selects all text in the note', () => {\n  // if macOS do one thing, else do another\n  const modifier = Cypress.platform === 'darwin' ? '{cmd}' : '{ctrl}'\n\n  cy.get('#note').type(`${modifier}a`)\n})\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/cypress-api/platform.json",
      "token_estimate": 48
    },
    {
      "id": "api/cypress-api/platform#conditionals",
      "doc_id": "api/cypress-api/platform",
      "heading": "Conditionals",
      "heading_level": 3,
      "content_markdown": "### Conditionals\n\n```\nit('selects all text in the note', () => {\n  // if macOS do one thing, else do another\n  const modifier = Cypress.platform === 'darwin' ? '{cmd}' : '{ctrl}'\n\n  cy.get('#note').type(`${modifier}a`)\n})\n```\n",
      "section": "api",
      "anchors": [
        "conditionals"
      ],
      "path": "/llm/json/chunked/api/cypress-api/platform.json",
      "token_estimate": 45
    }
  ]
}