{
  "name": "mocha",
  "url": "https://canirequire.com/package/mocha/",
  "description": "Classic, reliable, trusted test framework for Node.js and the browser",
  "latest": "12.0.0",
  "latestPublished": "2026-08-31T15:02:47.521Z",
  "format": "esm-only",
  "summary": "mocha@12.0.0 is ESM-only. mocha dropped its CommonJS build in 12.0.0 (August 2026). The last version you can require() on every Node.js version, including 18 and older, is 11.8.0, published Aug 2, 2026. On Node.js 20.19+, 22.12+ and every newer release, require(\"mocha\") 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. mocha@12.0.0 declares engines \"^20.19.0 || >=22.12.0\", so Node.js 18 is outside its supported range regardless of module format.",
  "esmOnlySince": "12.0.0",
  "esmOnlySinceDate": "2026-08-31T15:02:47.521Z",
  "lastCommonJsVersion": "11.8.0",
  "lastCommonJsDate": "2026-08-02T19:20:36.906Z",
  "nativeEsmSince": "12.0.0",
  "types": "definitely-typed",
  "nodeEngines": "^20.19.0 || >=22.12.0",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/mochajs/mocha",
  "weeklyDownloads": 13310953,
  "runtime": {
    "verifiedAt": "2026-09-09T15:28:59.491Z",
    "node": {
      "18": {
        "require": false,
        "import": false,
        "requireError": "ERR_REQUIRE_ESM",
        "importError": "ERR_REQUIRE_ESM"
      },
      "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": "12.0.0",
      "format": "esm-only",
      "published": "2026-08-31T15:02:47.521Z"
    },
    {
      "version": "11.8.0",
      "format": "cjs",
      "published": "2026-08-02T19:20:36.906Z"
    },
    {
      "version": "11.7.6",
      "format": "cjs",
      "published": "2026-05-21T11:11:59.551Z"
    },
    {
      "version": "11.7.5",
      "format": "cjs",
      "published": "2025-11-05T02:14:05.649Z"
    },
    {
      "version": "11.7.4",
      "format": "cjs",
      "published": "2025-10-01T22:30:33.682Z"
    },
    {
      "version": "11.7.3",
      "format": "cjs",
      "published": "2025-09-30T12:08:49.692Z"
    },
    {
      "version": "11.7.2",
      "format": "cjs",
      "published": "2025-09-01T16:20:43.708Z"
    },
    {
      "version": "11.7.1",
      "format": "cjs",
      "published": "2025-06-24T13:35:20.122Z"
    },
    {
      "version": "11.7.0",
      "format": "cjs",
      "published": "2025-06-18T01:38:34.737Z"
    },
    {
      "version": "11.6.0",
      "format": "cjs",
      "published": "2025-06-09T10:38:02.013Z"
    },
    {
      "version": "11.5.0",
      "format": "cjs",
      "published": "2025-05-23T22:15:31.861Z"
    },
    {
      "version": "11.4.0",
      "format": "cjs",
      "published": "2025-05-19T14:14:11.875Z"
    },
    {
      "version": "11.3.0",
      "format": "cjs",
      "published": "2025-05-16T14:01:41.226Z"
    },
    {
      "version": "11.2.2",
      "format": "cjs",
      "published": "2025-04-10T14:59:36.670Z"
    },
    {
      "version": "11.2.1",
      "format": "cjs",
      "published": "2025-04-10T11:57:19.362Z"
    },
    {
      "version": "11.2.0",
      "format": "cjs",
      "published": "2025-03-17T18:53:55.100Z"
    },
    {
      "version": "11.1.0",
      "format": "cjs",
      "published": "2025-01-02T06:36:37.812Z"
    },
    {
      "version": "11.0.2",
      "format": "cjs",
      "published": "2024-12-09T14:35:20.169Z"
    },
    {
      "version": "11.0.1",
      "format": "cjs",
      "published": "2024-12-02T15:59:58.304Z"
    },
    {
      "version": "11.0.0",
      "format": "cjs",
      "published": "2024-11-11T17:56:22.347Z"
    },
    {
      "version": "10.8.2",
      "format": "cjs",
      "published": "2024-10-30T16:32:22.934Z"
    },
    {
      "version": "10.8.1",
      "format": "cjs",
      "published": "2024-10-29T20:38:09.542Z"
    },
    {
      "version": "10.8.0",
      "format": "cjs",
      "published": "2024-10-29T18:14:57.616Z"
    },
    {
      "version": "10.7.3",
      "format": "cjs",
      "published": "2024-08-09T10:59:49.672Z"
    },
    {
      "version": "10.7.0",
      "format": "cjs",
      "published": "2024-07-20T19:45:56.910Z"
    },
    {
      "version": "10.6.1",
      "format": "cjs",
      "published": "2024-07-20T17:40:58.326Z"
    },
    {
      "version": "10.6.0",
      "format": "cjs",
      "published": "2024-07-02T16:16:24.406Z"
    },
    {
      "version": "10.5.2",
      "format": "cjs",
      "published": "2024-06-26T17:58:08.373Z"
    },
    {
      "version": "10.5.1",
      "format": "cjs",
      "published": "2024-06-25T06:26:03.073Z"
    },
    {
      "version": "10.5.0",
      "format": "cjs",
      "published": "2024-06-24T17:46:18.291Z"
    },
    {
      "version": "10.4.0",
      "format": "cjs",
      "published": "2024-03-26T18:28:33.584Z"
    },
    {
      "version": "10.3.0",
      "format": "cjs",
      "published": "2024-02-08T14:40:39.897Z"
    },
    {
      "version": "10.2.0",
      "format": "cjs",
      "published": "2022-12-11T14:18:56.217Z"
    },
    {
      "version": "10.1.0",
      "format": "cjs",
      "published": "2022-10-15T20:58:49.031Z"
    },
    {
      "version": "10.0.0",
      "format": "cjs",
      "published": "2022-05-01T05:17:56.134Z"
    },
    {
      "version": "9.2.2",
      "format": "cjs",
      "published": "2022-03-11T16:58:49.989Z"
    },
    {
      "version": "9.2.1",
      "format": "cjs",
      "published": "2022-02-19T10:06:59.624Z"
    },
    {
      "version": "9.2.0",
      "format": "cjs",
      "published": "2022-01-24T09:09:22.865Z"
    },
    {
      "version": "9.1.4",
      "format": "cjs",
      "published": "2022-01-14T18:52:09.127Z"
    },
    {
      "version": "9.1.3",
      "format": "cjs",
      "published": "2021-10-15T07:29:32.895Z"
    },
    {
      "version": "9.1.2",
      "format": "cjs",
      "published": "2021-09-25T08:39:20.268Z"
    },
    {
      "version": "9.1.1",
      "format": "cjs",
      "published": "2021-08-28T13:57:06.894Z"
    },
    {
      "version": "9.1.0",
      "format": "cjs",
      "published": "2021-08-20T07:29:11.861Z"
    },
    {
      "version": "9.0.3",
      "format": "cjs",
      "published": "2021-07-25T16:15:51.196Z"
    },
    {
      "version": "9.0.2",
      "format": "cjs",
      "published": "2021-07-03T08:28:04.401Z"
    },
    {
      "version": "9.0.1",
      "format": "cjs",
      "published": "2021-06-18T07:34:17.935Z"
    },
    {
      "version": "9.0.0",
      "format": "cjs",
      "published": "2021-06-07T15:46:55.977Z"
    },
    {
      "version": "8.4.0",
      "format": "cjs",
      "published": "2021-05-07T08:30:36.704Z"
    },
    {
      "version": "8.3.2",
      "format": "cjs",
      "published": "2021-03-12T08:25:17.006Z"
    },
    {
      "version": "8.3.1",
      "format": "cjs",
      "published": "2021-03-06T06:50:18.488Z"
    },
    {
      "version": "8.3.0",
      "format": "cjs",
      "published": "2021-02-11T18:49:06.582Z"
    },
    {
      "version": "8.2.1",
      "format": "cjs",
      "published": "2020-11-02T22:54:27.988Z"
    },
    {
      "version": "8.2.0",
      "format": "cjs",
      "published": "2020-10-16T21:11:31.207Z"
    },
    {
      "version": "8.1.3",
      "format": "cjs",
      "published": "2020-08-28T20:54:48.785Z"
    },
    {
      "version": "8.1.2",
      "format": "cjs",
      "published": "2020-08-25T19:40:41.721Z"
    },
    {
      "version": "8.1.1",
      "format": "cjs",
      "published": "2020-08-04T19:16:16.242Z"
    },
    {
      "version": "8.1.0",
      "format": "cjs",
      "published": "2020-07-30T20:19:05.078Z"
    },
    {
      "version": "8.0.1",
      "format": "cjs",
      "published": "2020-06-10T21:39:54.728Z"
    },
    {
      "version": "8.0.0",
      "format": "cjs",
      "published": "2020-06-10T19:12:11.507Z"
    },
    {
      "version": "7.2.0",
      "format": "cjs",
      "published": "2020-05-23T11:41:32.286Z"
    }
  ]
}