{
  "name": "supports-color",
  "url": "https://canirequire.com/package/supports-color/",
  "description": "Detect whether a terminal supports color",
  "latest": "11.0.0",
  "latestPublished": "2026-07-26T15:13:36.815Z",
  "format": "esm-only",
  "summary": "supports-color@11.0.0 is ESM-only. supports-color dropped its CommonJS build in 9.0.0 (April 2021). The last version you can require() on every Node.js version, including 18 and older, is 8.1.1, published Jan 23, 2021. On Node.js 20.19+, 22.12+ and every newer release, require(\"supports-color\") works anyway: Node can load synchronous ES modules through require(). Verified on Node 22, 24, 26. Node.js 18 and older still fail with ERR_REQUIRE_ESM. supports-color@11.0.0 declares engines \">=22\", so Node.js 18, 20 are outside its supported range regardless of module format.",
  "esmOnlySince": "9.0.0",
  "esmOnlySinceDate": "2021-04-16T08:15:38.522Z",
  "lastCommonJsVersion": "8.1.1",
  "lastCommonJsDate": "2021-01-23T09:21:36.393Z",
  "nativeEsmSince": "9.0.0",
  "types": "bundled",
  "nodeEngines": ">=22",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/chalk/supports-color",
  "weeklyDownloads": 441630802,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:29.493Z",
    "node": {
      "18": {
        "require": false,
        "import": false,
        "requireError": "ERR_REQUIRE_ESM",
        "importError": "SyntaxError"
      },
      "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": "11.0.0",
      "format": "esm-only",
      "published": "2026-07-26T15:13:36.815Z"
    },
    {
      "version": "10.2.2",
      "format": "esm-only",
      "published": "2025-09-08T14:49:55.476Z"
    },
    {
      "version": "10.2.0",
      "format": "esm-only",
      "published": "2025-08-17T07:28:56.534Z"
    },
    {
      "version": "10.1.0",
      "format": "esm-only",
      "published": "2025-08-03T23:27:06.324Z"
    },
    {
      "version": "10.0.0",
      "format": "esm-only",
      "published": "2024-12-18T17:55:27.599Z"
    },
    {
      "version": "9.4.0",
      "format": "esm-only",
      "published": "2023-06-28T13:52:12.350Z"
    },
    {
      "version": "9.3.1",
      "format": "esm-only",
      "published": "2022-12-15T11:29:08.889Z"
    },
    {
      "version": "9.3.0",
      "format": "esm-only",
      "published": "2022-12-07T12:42:42.978Z"
    },
    {
      "version": "9.2.3",
      "format": "esm-only",
      "published": "2022-09-07T16:25:35.450Z"
    },
    {
      "version": "9.2.2",
      "format": "esm-only",
      "published": "2022-03-28T10:44:05.981Z"
    },
    {
      "version": "9.2.1",
      "format": "esm-only",
      "published": "2021-11-26T09:33:25.398Z"
    },
    {
      "version": "9.2.0",
      "format": "esm-only",
      "published": "2021-11-26T09:14:21.970Z"
    },
    {
      "version": "9.1.0",
      "format": "esm-only",
      "published": "2021-11-18T18:04:38.053Z"
    },
    {
      "version": "9.0.2",
      "format": "esm-only",
      "published": "2021-07-19T14:01:37.227Z"
    },
    {
      "version": "9.0.1",
      "format": "esm-only",
      "published": "2021-05-29T13:06:03.949Z"
    },
    {
      "version": "9.0.0",
      "format": "esm-only",
      "published": "2021-04-16T08:15:38.522Z"
    },
    {
      "version": "8.1.1",
      "format": "cjs",
      "published": "2021-01-23T09:21:36.393Z"
    },
    {
      "version": "8.1.0",
      "format": "cjs",
      "published": "2020-12-14T16:16:19.236Z"
    },
    {
      "version": "8.0.0",
      "format": "cjs",
      "published": "2020-11-24T08:32:34.341Z"
    },
    {
      "version": "7.2.0",
      "format": "cjs",
      "published": "2020-08-28T11:17:34.870Z"
    },
    {
      "version": "7.1.0",
      "format": "cjs",
      "published": "2019-09-27T04:07:02.795Z"
    },
    {
      "version": "7.0.0",
      "format": "cjs",
      "published": "2019-06-11T17:45:54.069Z"
    },
    {
      "version": "6.1.0",
      "format": "cjs",
      "published": "2019-01-11T07:09:33.987Z"
    },
    {
      "version": "6.0.0",
      "format": "cjs",
      "published": "2018-12-21T14:14:26.021Z"
    },
    {
      "version": "5.5.0",
      "format": "cjs",
      "published": "2018-08-20T04:37:37.309Z"
    },
    {
      "version": "5.4.0",
      "format": "cjs",
      "published": "2018-04-17T03:57:41.760Z"
    },
    {
      "version": "5.3.0",
      "format": "cjs",
      "published": "2018-03-02T09:07:59.696Z"
    },
    {
      "version": "5.2.0",
      "format": "cjs",
      "published": "2018-02-11T12:51:25.740Z"
    },
    {
      "version": "5.1.0",
      "format": "cjs",
      "published": "2017-12-11T19:56:38.670Z"
    },
    {
      "version": "5.0.1",
      "format": "cjs",
      "published": "2017-11-28T10:54:57.328Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2017-10-18T06:05:45.239Z"
    },
    {
      "version": "4.5.0",
      "format": "cjs",
      "published": "2017-10-18T05:55:44.764Z"
    },
    {
      "version": "4.4.0",
      "format": "cjs",
      "published": "2017-08-31T06:54:37.308Z"
    },
    {
      "version": "4.3.0",
      "format": "cjs",
      "published": "2017-08-31T02:40:14.004Z"
    },
    {
      "version": "4.2.1",
      "format": "cjs",
      "published": "2017-07-22T11:04:58.322Z"
    },
    {
      "version": "4.2.0",
      "format": "cjs",
      "published": "2017-07-07T03:20:42.740Z"
    },
    {
      "version": "4.1.0",
      "format": "cjs",
      "published": "2017-06-30T18:57:08.483Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2017-06-20T19:22:36.244Z"
    },
    {
      "version": "3.2.3",
      "format": "cjs",
      "published": "2017-01-16T00:27:52.732Z"
    },
    {
      "version": "3.2.2",
      "format": "cjs",
      "published": "2017-01-16T00:19:21.083Z"
    },
    {
      "version": "3.2.1",
      "format": "cjs",
      "published": "2017-01-16T00:10:36.346Z"
    },
    {
      "version": "3.2.0",
      "format": "cjs",
      "published": "2017-01-15T23:58:12.939Z"
    },
    {
      "version": "3.1.2",
      "format": "cjs",
      "published": "2015-10-13T11:20:54.814Z"
    },
    {
      "version": "3.1.1",
      "format": "cjs",
      "published": "2015-09-02T19:04:25.188Z"
    },
    {
      "version": "3.1.0",
      "format": "cjs",
      "published": "2015-07-18T14:26:04.931Z"
    },
    {
      "version": "3.0.1",
      "format": "cjs",
      "published": "2015-07-16T20:43:38.209Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2015-07-15T23:40:25.242Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2015-06-30T22:58:34.955Z"
    },
    {
      "version": "1.3.1",
      "format": "cjs",
      "published": "2015-03-16T10:58:24.112Z"
    },
    {
      "version": "1.3.0",
      "format": "cjs",
      "published": "2015-02-23T06:58:50.877Z"
    },
    {
      "version": "1.2.1",
      "format": "cjs",
      "published": "2015-02-22T09:28:35.164Z"
    },
    {
      "version": "1.2.0",
      "format": "cjs",
      "published": "2014-10-12T21:36:25.330Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2014-08-19T23:31:57.814Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2014-08-13T16:35:11.503Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2014-06-14T01:45:57.033Z"
    }
  ]
}