{
 "kind": "tool",
 "slug": "cross-env",
 "path": "tools/cross-env/",
 "name": "cross-env",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Dev workflow and config",
   "tools/dev-workflow/"
  ]
 ],
 "lead": "Set environment variables across Windows, Mac and Linux in npm scripts.",
 "chips": [
  {
   "label": "Dev workflow and config",
   "path": "tools/dev-workflow/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install cross-env"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/kentcdodds/cross-env"
  },
  {
   "label": "Website",
   "href": "https://github.com/kentcdodds/cross-env#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/kentcdodds/cross-env"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "No longer maintained",
   "status": "no",
   "sub": "Repository archived",
   "note": "Latest GitHub release Sep 29, 2025. ",
   "src": "https://github.com/kentcdodds/cross-env"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "208 projects",
   "status": "info",
   "sub": "#8 of 299 in its category",
   "note": "Dependency in 208 public GitHub projects set up for AI coding agents that we scanned (3.3%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What cross-env does",
   "parts": [
    {
     "t": "prose",
     "text": "Set environment variables across Windows, Mac and Linux in npm scripts."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "cross-env popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "74",
       "of": "/ 100",
       "l": "Gid Score, #229 overall"
      },
      {
       "n": "36.9M",
       "l": "downloads a week, npm"
      },
      {
       "n": "6,519",
       "l": "GitHub stars"
      },
      {
       "n": "208",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How cross-env is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "cross-env is a dependency in 208 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (4.3% of the 4,867 JavaScript/TypeScript ones), #8 of 299 in dev workflow and config.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 561; those are left out of every share on this page.",
      "Projects that use it most often also use Playwright (JavaScript) (47.6%), TypeScript (85.1%), ESLint (64.9%).",
      "It is more common in projects set up for OpenClaw (6.9%) than for OpenAI Codex (2.8%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "124 projects, 3.8%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "103 projects, 3.4%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "77 projects, 3.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "23 projects, 4.9%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "23 projects, 6.9%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      },
      {
       "l": "13 projects, 2.8%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "11 projects, 3.9%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "10 projects, 2.9%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 47.6% of its projects",
       "v": "Playwright (JavaScript)",
       "path": "tools/playwright-test/"
      },
      {
       "l": "In 85.1% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 64.9% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 49.5% of its projects",
       "v": "Prettier",
       "path": "tools/prettier/"
      },
      {
       "l": "In 27.9% of its projects",
       "v": "lint-staged",
       "path": "tools/lint-staged/"
      },
      {
       "l": "In 31.7% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 31.2% of its projects",
       "v": "Husky",
       "path": "tools/husky/"
      },
      {
       "l": "In 55.3% of its projects",
       "v": "React",
       "path": "tools/react/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about cross-env",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Dev workflow and config",
       "path": "tools/dev-workflow/",
       "items": [
        {
         "text": "dotenv",
         "path": "tools/dotenv/"
        },
        {
         "text": "Husky",
         "path": "tools/husky/"
        },
        {
         "text": "python-dotenv",
         "path": "tools/python-dotenv/"
        },
        {
         "text": "lint-staged",
         "path": "tools/lint-staged/"
        },
        {
         "text": "concurrently",
         "path": "tools/concurrently/"
        },
        {
         "text": "Rich",
         "path": "tools/rich/"
        },
        {
         "text": "Pydantic Settings",
         "path": "tools/pydantic-settings/"
        },
        {
         "text": "chalk",
         "path": "tools/chalk/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "cross-env",
       "me": true,
       "facts": [
        "MIT",
        "Gid 74",
        "36.9M/wk"
       ]
      }
     ],
     "more": "Compare cross-env with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install cross-env"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for cross-env yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm cross-env"
  ],
  [
   "Category",
   "Dev workflow and config"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "74.1"
  ],
  [
   "Rank in category",
   "#8 of 299"
  ],
  [
   "GitHub",
   "kentcdodds/cross-env"
  ],
  [
   "Last change",
   "Nov 16, 2025"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/kentcdodds.png"
}