{
  "name": "is-wsl",
  "url": "https://canirequire.com/package/is-wsl/",
  "description": "Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)",
  "latest": "3.1.1",
  "latestPublished": "2026-02-15T08:45:04.136Z",
  "format": "esm-only",
  "summary": "is-wsl@3.1.1 is ESM-only. is-wsl dropped its CommonJS build in 3.0.0 (August 2023). The last version you can require() on every Node.js version, including 18 and older, is 2.2.0, published May 3, 2020. On Node.js 20.19+, 22.12+ and every newer release, require(\"is-wsl\") works anyway: Node can load synchronous ES modules through require(). Verified on Node 20, 22, 24, 26. Node.js 18 and older still fail with ERR_REQUIRE_ESM.",
  "esmOnlySince": "3.0.0",
  "esmOnlySinceDate": "2023-08-08T19:10:05.984Z",
  "lastCommonJsVersion": "2.2.0",
  "lastCommonJsDate": "2020-05-03T07:57:13.100Z",
  "nativeEsmSince": "3.0.0",
  "types": "bundled",
  "nodeEngines": ">=16",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/sindresorhus/is-wsl",
  "weeklyDownloads": 117588171,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:42.139Z",
    "node": {
      "18": {
        "require": false,
        "import": true,
        "requireError": "ERR_REQUIRE_ESM",
        "importError": null
      },
      "20": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      },
      "22": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      },
      "24": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      },
      "26": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      }
    },
    "bun": {
      "require": true,
      "import": true,
      "requireError": null,
      "importError": null
    }
  },
  "formatHistory": [
    {
      "version": "3.1.1",
      "format": "esm-only",
      "published": "2026-02-15T08:45:04.136Z"
    },
    {
      "version": "3.1.0",
      "format": "esm-only",
      "published": "2023-09-25T05:58:41.397Z"
    },
    {
      "version": "3.0.0",
      "format": "esm-only",
      "published": "2023-08-08T19:10:05.984Z"
    },
    {
      "version": "2.2.0",
      "format": "cjs",
      "published": "2020-05-03T07:57:13.100Z"
    },
    {
      "version": "2.1.1",
      "format": "cjs",
      "published": "2019-09-23T06:18:06.597Z"
    },
    {
      "version": "2.1.0",
      "format": "cjs",
      "published": "2019-06-23T06:23:43.801Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2019-04-23T08:16:19.492Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2017-04-17T05:39:47.328Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2017-04-16T13:41:16.689Z"
    }
  ]
}