{
  "name": "strip-ansi",
  "url": "https://canirequire.com/package/strip-ansi/",
  "description": "Strip ANSI escape codes from a string",
  "latest": "7.2.0",
  "latestPublished": "2026-02-26T13:51:11.099Z",
  "format": "esm-only",
  "summary": "strip-ansi@7.2.0 is ESM-only. strip-ansi dropped its CommonJS build in 7.0.0 (April 2021). The last version you can require() on every Node.js version, including 18 and older, is 6.0.1, published Sep 23, 2021. On Node.js 20.19+, 22.12+ and every newer release, require(\"strip-ansi\") 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": "7.0.0",
  "esmOnlySinceDate": "2021-04-16T06:08:05.929Z",
  "lastCommonJsVersion": "6.0.1",
  "lastCommonJsDate": "2021-09-23T16:34:41.798Z",
  "nativeEsmSince": "7.0.0",
  "types": "bundled",
  "nodeEngines": ">=12",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/chalk/strip-ansi",
  "weeklyDownloads": 464474013,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:29.491Z",
    "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": "7.2.0",
      "format": "esm-only",
      "published": "2026-02-26T13:51:11.099Z"
    },
    {
      "version": "7.1.2",
      "format": "esm-only",
      "published": "2025-09-08T15:05:29.146Z"
    },
    {
      "version": "7.1.0",
      "format": "esm-only",
      "published": "2023-05-28T09:55:04.358Z"
    },
    {
      "version": "7.0.1",
      "format": "esm-only",
      "published": "2021-09-11T08:50:46.669Z"
    },
    {
      "version": "7.0.0",
      "format": "esm-only",
      "published": "2021-04-16T06:08:05.929Z"
    },
    {
      "version": "6.0.1",
      "format": "cjs",
      "published": "2021-09-23T16:34:41.798Z"
    },
    {
      "version": "6.0.0",
      "format": "cjs",
      "published": "2019-11-09T06:20:36.658Z"
    },
    {
      "version": "5.2.0",
      "format": "cjs",
      "published": "2019-03-18T08:46:18.955Z"
    },
    {
      "version": "5.1.0",
      "format": "cjs",
      "published": "2019-03-08T07:44:00.512Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2018-09-29T19:25:44.295Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2017-06-20T19:28:26.510Z"
    },
    {
      "version": "3.0.1",
      "format": "cjs",
      "published": "2016-02-21T12:21:22.998Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2015-06-30T16:53:11.137Z"
    },
    {
      "version": "2.0.1",
      "format": "cjs",
      "published": "2015-01-16T18:48:44.952Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2014-08-13T13:36:36.745Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2014-07-23T22:31:46.786Z"
    },
    {
      "version": "0.3.0",
      "format": "cjs",
      "published": "2014-06-24T19:33:15.394Z"
    },
    {
      "version": "0.2.2",
      "format": "cjs",
      "published": "2014-06-03T17:09:40.794Z"
    },
    {
      "version": "0.2.1",
      "format": "cjs",
      "published": "2014-04-28T10:05:45.285Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2014-03-26T15:28:35.327Z"
    },
    {
      "version": "0.1.1",
      "format": "cjs",
      "published": "2013-12-08T00:12:22.401Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2013-12-07T23:30:17.673Z"
    }
  ]
}