{
  "name": "wrap-ansi",
  "url": "https://canirequire.com/package/wrap-ansi/",
  "description": "Wordwrap a string with ANSI escape codes",
  "latest": "10.0.1",
  "latestPublished": "2026-08-17T22:42:54.710Z",
  "format": "esm-only",
  "summary": "wrap-ansi@10.0.1 is ESM-only. wrap-ansi dropped its CommonJS build in 8.0.0 (April 2021). The last version you can require() on every Node.js version, including 18 and older, is 7.0.0, published Apr 22, 2020. On Node.js 20.19+, 22.12+ and every newer release, require(\"wrap-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. wrap-ansi@10.0.1 declares engines \">=20\", so Node.js 18 is outside its supported range regardless of module format.",
  "esmOnlySince": "8.0.0",
  "esmOnlySinceDate": "2021-04-16T07:40:36.092Z",
  "lastCommonJsVersion": "7.0.0",
  "lastCommonJsDate": "2020-04-22T16:53:23.889Z",
  "nativeEsmSince": "8.0.0",
  "types": "bundled",
  "nodeEngines": ">=20",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/chalk/wrap-ansi",
  "weeklyDownloads": 311488741,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:30.401Z",
    "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": "10.0.1",
      "format": "esm-only",
      "published": "2026-08-17T22:42:54.710Z"
    },
    {
      "version": "10.0.0",
      "format": "esm-only",
      "published": "2026-02-20T10:03:54.703Z"
    },
    {
      "version": "9.0.2",
      "format": "esm-only",
      "published": "2025-09-08T15:10:49.479Z"
    },
    {
      "version": "9.0.0",
      "format": "esm-only",
      "published": "2023-10-28T17:40:34.341Z"
    },
    {
      "version": "8.1.0",
      "format": "esm-only",
      "published": "2023-01-23T10:13:24.890Z"
    },
    {
      "version": "8.0.1",
      "format": "esm-only",
      "published": "2021-09-13T18:18:05.982Z"
    },
    {
      "version": "8.0.0",
      "format": "esm-only",
      "published": "2021-04-16T07:40:36.092Z"
    },
    {
      "version": "7.0.0",
      "format": "cjs",
      "published": "2020-04-22T16:53:23.889Z"
    },
    {
      "version": "6.2.0",
      "format": "cjs",
      "published": "2019-11-11T16:08:17.322Z"
    },
    {
      "version": "6.1.0",
      "format": "cjs",
      "published": "2019-10-23T07:54:03.081Z"
    },
    {
      "version": "6.0.0",
      "format": "cjs",
      "published": "2019-06-11T17:44:27.001Z"
    },
    {
      "version": "5.1.0",
      "format": "cjs",
      "published": "2019-04-02T14:36:15.008Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2019-03-03T06:38:34.939Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2018-08-31T20:09:07.083Z"
    },
    {
      "version": "3.0.1",
      "format": "cjs",
      "published": "2017-07-23T19:58:53.494Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2017-07-23T11:27:48.128Z"
    },
    {
      "version": "2.1.0",
      "format": "cjs",
      "published": "2016-11-29T17:21:24.416Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2015-12-01T17:27:23.410Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2015-10-13T05:08:13.341Z"
    },
    {
      "version": "0.3.0",
      "format": "cjs",
      "published": "2015-10-10T14:31:14.973Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2015-08-28T07:07:49.929Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2015-08-19T18:56:22.141Z"
    }
  ]
}