{
 "kind": "tool",
 "slug": "shx",
 "path": "tools/shx/",
 "name": "shx",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Dev workflow and config",
   "tools/dev-workflow/"
  ]
 ],
 "lead": "Cross-platform shell commands for Node.js scripts without shell dependencies.",
 "chips": [
  {
   "label": "Dev workflow and config",
   "path": "tools/dev-workflow/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install shx"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/shelljs/shx"
  },
  {
   "label": "Website",
   "href": "https://github.com/shelljs/shx#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/shelljs/shx"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Sep 17, 2026",
   "note": "Latest GitHub release Mar 17, 2025. ",
   "src": "https://github.com/shelljs/shx"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "24 projects",
   "status": "info",
   "sub": "#53 of 299 in its category",
   "note": "Dependency in 24 public GitHub projects set up for AI coding agents that we scanned (0.4%).",
   "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 shx does",
   "parts": [
    {
     "t": "prose",
     "text": "Cross-platform shell commands for Node.js scripts without shell dependencies."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "shx popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "50",
       "of": "/ 100",
       "l": "Gid Score, #1969 overall"
      },
      {
       "n": "1.7M",
       "l": "downloads a week, npm"
      },
      {
       "n": "1,876",
       "l": "GitHub stars"
      },
      {
       "n": "24",
       "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 shx is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "shx is a dependency in 24 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.5% of the 4,867 JavaScript/TypeScript ones), #53 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 62; those are left out of every share on this page.",
      "The most used alternative in our scan is cross-env (208 projects).",
      "Projects that use it most often also use Model Context Protocol SDK (JavaScript) (62.5%), Zod (66.7%), TypeScript (95.8%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "12 projects, 0.4%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "11 projects, 0.5%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "6 projects, 0.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 62.5% of its projects",
       "v": "Model Context Protocol SDK (JavaScript)",
       "path": "tools/modelcontextprotocol/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 95.8% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 25.0% of its projects",
       "v": "Express",
       "path": "tools/express/"
      },
      {
       "l": "In 41.7% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 20.8% of its projects",
       "v": "ts-node",
       "path": "tools/ts-node/"
      },
      {
       "l": "In 16.7% of its projects",
       "v": "MCP Inspector",
       "path": "tools/modelcontextprotocol-inspector/"
      },
      {
       "l": "In 20.8% of its projects",
       "v": "lint-staged",
       "path": "tools/lint-staged/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about shx",
   "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": "shx",
       "me": true,
       "facts": [
        "MIT",
        "Gid 50",
        "1.7M/wk"
       ]
      },
      {
       "name": "cross-env",
       "why": "Set environment variables across Windows, Mac and Linux in npm scripts.",
       "path": "tools/cross-env/",
       "facts": [
        "MIT",
        "Gid 74",
        "36.9M/wk"
       ]
      },
      {
       "name": "rimraf",
       "why": "Cross-platform delete directories and files recursively like Unix rm -rf command.",
       "path": "tools/rimraf/",
       "facts": [
        "BlueOak-1.0.0",
        "Gid 74",
        "216M/wk"
       ]
      }
     ],
     "more": "Compare shx with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install shx"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for shx yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm shx"
  ],
  [
   "Category",
   "Dev workflow and config"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "50.0"
  ],
  [
   "Rank in category",
   "#53 of 299"
  ],
  [
   "GitHub",
   "shelljs/shx"
  ],
  [
   "Last change",
   "Sep 17, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/shelljs.png"
}