{
  "name": "ansi-regex",
  "url": "https://canirequire.com/package/ansi-regex/",
  "description": "Regular expression for matching ANSI escape codes",
  "latest": "6.3.0",
  "latestPublished": "2026-08-12T14:33:26.744Z",
  "format": "esm-only",
  "summary": "ansi-regex@6.3.0 is ESM-only. ansi-regex dropped its CommonJS build in 6.0.0 (April 2021). The last version you can require() on every Node.js version, including 18 and older, is 5.0.1, published Sep 14, 2021. On Node.js 20.19+, 22.12+ and every newer release, require(\"ansi-regex\") 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": "6.0.0",
  "esmOnlySinceDate": "2021-04-16T06:02:15.282Z",
  "lastCommonJsVersion": "5.0.1",
  "lastCommonJsDate": "2021-09-14T15:55:19.540Z",
  "nativeEsmSince": "6.0.0",
  "types": "bundled",
  "nodeEngines": ">=12",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/chalk/ansi-regex",
  "weeklyDownloads": 345318565,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:29.886Z",
    "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": "6.3.0",
      "format": "esm-only",
      "published": "2026-08-12T14:33:26.744Z"
    },
    {
      "version": "6.2.2",
      "format": "esm-only",
      "published": "2025-09-08T14:48:14.264Z"
    },
    {
      "version": "6.2.0",
      "format": "esm-only",
      "published": "2025-08-17T16:49:37.909Z"
    },
    {
      "version": "6.1.0",
      "format": "esm-only",
      "published": "2024-09-09T13:57:56.873Z"
    },
    {
      "version": "6.0.1",
      "format": "esm-only",
      "published": "2021-09-10T20:25:05.514Z"
    },
    {
      "version": "6.0.0",
      "format": "esm-only",
      "published": "2021-04-16T06:02:15.282Z"
    },
    {
      "version": "5.0.1",
      "format": "cjs",
      "published": "2021-09-14T15:55:19.540Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2019-10-04T11:29:13.830Z"
    },
    {
      "version": "4.1.1",
      "format": "cjs",
      "published": "2022-03-12T03:08:58.035Z"
    },
    {
      "version": "4.1.0",
      "format": "cjs",
      "published": "2019-03-08T06:14:40.169Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2018-09-18T08:18:58.129Z"
    },
    {
      "version": "3.0.1",
      "format": "cjs",
      "published": "2022-03-27T13:29:44.595Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2017-06-20T19:03:33.464Z"
    },
    {
      "version": "2.1.1",
      "format": "cjs",
      "published": "2017-01-14T03:09:39.887Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2015-06-30T16:07:19.279Z"
    },
    {
      "version": "1.1.1",
      "format": "cjs",
      "published": "2015-02-22T09:24:51.185Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2014-08-30T12:38:30.166Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2014-08-13T13:29:14.050Z"
    },
    {
      "version": "0.2.1",
      "format": "cjs",
      "published": "2014-06-20T16:44:03.241Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2014-06-14T01:12:53.550Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2014-06-03T16:59:22.332Z"
    }
  ]
}