{
  "doc": {
    "id": "api/cypress-api/platform",
    "title": "Cypress.platform | Cypress Documentation",
    "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": "a8fd16711bdda4c7b5645b9717e588ae99ec2470",
    "updated_at": "2026-05-18T17:21:32.047Z",
    "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('has JSON files', () => {  // if windows do one thing, else do another  const cmd = Cypress.platform === 'win32' ? 'dir *.json' : 'ls *.json'  cy.exec(cmd).its('stdout').should('include', 'package.json')})\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/cypress-api/platform.json",
      "token_estimate": 47
    },
    {
      "id": "api/cypress-api/platform#conditionals",
      "doc_id": "api/cypress-api/platform",
      "heading": "Conditionals",
      "heading_level": 3,
      "content_markdown": "### Conditionals\n\n```\nit('has JSON files', () => {  // if windows do one thing, else do another  const cmd = Cypress.platform === 'win32' ? 'dir *.json' : 'ls *.json'  cy.exec(cmd).its('stdout').should('include', 'package.json')})\n```\n",
      "section": "api",
      "anchors": [
        "conditionals"
      ],
      "path": "/llm/json/chunked/api/cypress-api/platform.json",
      "token_estimate": 44
    }
  ]
}