{
  "name": "cli-truncate",
  "url": "https://canirequire.com/package/cli-truncate/",
  "description": "Truncate a string to a specific width in the terminal",
  "latest": "6.1.1",
  "latestPublished": "2026-07-09T15:40:06.568Z",
  "format": "esm-only",
  "summary": "cli-truncate@6.1.1 is ESM-only. cli-truncate dropped its CommonJS build in 3.0.0 (August 2021). The last version you can require() on every Node.js version, including 18 and older, is 2.1.0, published Dec 6, 2019. On Node.js 20.19+, 22.12+ and every newer release, require(\"cli-truncate\") 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. cli-truncate@6.1.1 declares engines \">=22\", so Node.js 18, 20 are outside its supported range regardless of module format.",
  "esmOnlySince": "3.0.0",
  "esmOnlySinceDate": "2021-08-10T22:03:37.806Z",
  "lastCommonJsVersion": "2.1.0",
  "lastCommonJsDate": "2019-12-06T07:47:55.662Z",
  "nativeEsmSince": "3.0.0",
  "types": "bundled",
  "nodeEngines": ">=22",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/sindresorhus/cli-truncate",
  "weeklyDownloads": 36031248,
  "runtime": {
    "verifiedAt": "2026-09-09T15:28:34.800Z",
    "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": "6.1.1",
      "format": "esm-only",
      "published": "2026-07-09T15:40:06.568Z"
    },
    {
      "version": "6.1.0",
      "format": "esm-only",
      "published": "2026-06-28T13:40:34.741Z"
    },
    {
      "version": "6.0.1",
      "format": "esm-only",
      "published": "2026-06-23T14:21:52.315Z"
    },
    {
      "version": "6.0.0",
      "format": "esm-only",
      "published": "2026-04-04T13:38:05.476Z"
    },
    {
      "version": "5.2.0",
      "format": "esm-only",
      "published": "2026-03-01T07:17:21.260Z"
    },
    {
      "version": "5.1.1",
      "format": "esm-only",
      "published": "2025-10-23T05:01:21.176Z"
    },
    {
      "version": "5.1.0",
      "format": "esm-only",
      "published": "2025-09-15T20:06:34.000Z"
    },
    {
      "version": "5.0.0",
      "format": "esm-only",
      "published": "2025-08-31T07:57:38.745Z"
    },
    {
      "version": "4.0.0",
      "format": "esm-only",
      "published": "2023-10-28T17:05:43.610Z"
    },
    {
      "version": "3.1.0",
      "format": "esm-only",
      "published": "2021-10-09T13:32:39.035Z"
    },
    {
      "version": "3.0.0",
      "format": "esm-only",
      "published": "2021-08-10T22:03:37.806Z"
    },
    {
      "version": "2.1.0",
      "format": "cjs",
      "published": "2019-12-06T07:47:55.662Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2019-06-13T07:19:48.480Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2017-07-23T10:56:44.162Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2017-01-13T10:43:54.984Z"
    },
    {
      "version": "0.2.1",
      "format": "cjs",
      "published": "2016-04-05T08:20:22.975Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2016-03-13T07:48:53.614Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2016-03-11T08:53:03.286Z"
    }
  ]
}