{
  "name": "@babel/generator",
  "url": "https://canirequire.com/package/@babel/generator/",
  "description": "Turns an AST into code.",
  "latest": "8.0.0",
  "latestPublished": "2026-06-16T13:33:06.536Z",
  "format": "esm-only",
  "summary": "@babel/generator@8.0.0 is ESM-only. @babel/generator dropped its CommonJS build in 8.0.0 (June 2026). The last version you can require() on every Node.js version, including 18 and older, is 7.29.8, published Jul 31, 2026. On Node.js 20.19+, 22.12+ and every newer release, require(\"@babel/generator\") 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. @babel/generator@8.0.0 declares engines \"^22.18.0 || >=24.11.0\", so Node.js 18, 20 are outside its supported range regardless of module format.",
  "esmOnlySince": "8.0.0",
  "esmOnlySinceDate": "2026-06-16T13:33:06.536Z",
  "lastCommonJsVersion": "7.29.8",
  "lastCommonJsDate": "2026-07-31T15:07:34.643Z",
  "nativeEsmSince": "8.0.0",
  "types": "bundled",
  "nodeEngines": "^22.18.0 || >=24.11.0",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/babel/babel",
  "weeklyDownloads": null,
  "runtime": {
    "verifiedAt": "2026-09-09T15:34:46.610Z",
    "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": "8.0.0",
      "format": "esm-only",
      "published": "2026-06-16T13:33:06.536Z"
    },
    {
      "version": "7.29.8",
      "format": "cjs",
      "published": "2026-07-31T15:07:34.643Z"
    },
    {
      "version": "7.29.7",
      "format": "cjs",
      "published": "2026-05-25T11:16:23.635Z"
    },
    {
      "version": "7.29.6",
      "format": "cjs",
      "published": "2026-05-25T10:55:03.785Z"
    },
    {
      "version": "7.29.1",
      "format": "cjs",
      "published": "2026-02-04T15:22:40.215Z"
    },
    {
      "version": "7.29.0",
      "format": "cjs",
      "published": "2026-01-31T17:39:18.396Z"
    },
    {
      "version": "7.28.6",
      "format": "cjs",
      "published": "2026-01-12T17:50:00.309Z"
    },
    {
      "version": "7.28.5",
      "format": "cjs",
      "published": "2025-10-23T15:17:49.683Z"
    },
    {
      "version": "7.28.3",
      "format": "cjs",
      "published": "2025-08-14T12:36:14.416Z"
    },
    {
      "version": "7.28.0",
      "format": "cjs",
      "published": "2025-07-02T08:38:24.367Z"
    },
    {
      "version": "7.27.5",
      "format": "cjs",
      "published": "2025-06-03T11:27:08.703Z"
    },
    {
      "version": "7.27.3",
      "format": "cjs",
      "published": "2025-05-27T08:39:22.768Z"
    },
    {
      "version": "7.27.1",
      "format": "cjs",
      "published": "2025-04-30T15:09:06.646Z"
    },
    {
      "version": "7.27.0",
      "format": "cjs",
      "published": "2025-03-24T17:41:49.470Z"
    },
    {
      "version": "7.26.10",
      "format": "cjs",
      "published": "2025-03-11T17:55:11.906Z"
    },
    {
      "version": "7.26.9",
      "format": "cjs",
      "published": "2025-02-14T11:48:07.424Z"
    },
    {
      "version": "7.26.8",
      "format": "cjs",
      "published": "2025-02-08T09:59:28.487Z"
    },
    {
      "version": "7.26.5",
      "format": "cjs",
      "published": "2025-01-10T17:11:54.088Z"
    },
    {
      "version": "7.26.3",
      "format": "cjs",
      "published": "2024-12-04T12:35:42.408Z"
    },
    {
      "version": "7.26.2",
      "format": "cjs",
      "published": "2024-10-30T17:46:14.710Z"
    },
    {
      "version": "7.26.0",
      "format": "cjs",
      "published": "2024-10-25T13:30:18.221Z"
    },
    {
      "version": "7.25.9",
      "format": "cjs",
      "published": "2024-10-22T15:21:17.165Z"
    },
    {
      "version": "7.25.7",
      "format": "cjs",
      "published": "2024-10-02T15:14:58.185Z"
    },
    {
      "version": "7.25.6",
      "format": "cjs",
      "published": "2024-08-29T10:14:25.768Z"
    },
    {
      "version": "7.25.5",
      "format": "cjs",
      "published": "2024-08-23T08:31:10.457Z"
    },
    {
      "version": "7.25.4",
      "format": "cjs",
      "published": "2024-08-22T09:34:31.741Z"
    },
    {
      "version": "7.25.0",
      "format": "cjs",
      "published": "2024-07-26T16:59:25.938Z"
    },
    {
      "version": "7.24.10",
      "format": "cjs",
      "published": "2024-07-16T09:52:54.301Z"
    },
    {
      "version": "7.24.9",
      "format": "cjs",
      "published": "2024-07-15T10:34:31.239Z"
    },
    {
      "version": "7.24.8",
      "format": "cjs",
      "published": "2024-07-11T14:54:51.993Z"
    },
    {
      "version": "7.24.7",
      "format": "cjs",
      "published": "2024-06-05T13:15:28.879Z"
    },
    {
      "version": "7.24.6",
      "format": "cjs",
      "published": "2024-05-24T12:24:38.989Z"
    },
    {
      "version": "7.24.5",
      "format": "cjs",
      "published": "2024-04-29T18:34:22.699Z"
    },
    {
      "version": "7.24.4",
      "format": "cjs",
      "published": "2024-04-03T16:53:45.199Z"
    },
    {
      "version": "7.24.1",
      "format": "cjs",
      "published": "2024-03-19T09:47:31.034Z"
    },
    {
      "version": "7.23.6",
      "format": "cjs",
      "published": "2023-12-11T13:10:02.983Z"
    },
    {
      "version": "7.23.5",
      "format": "cjs",
      "published": "2023-11-29T10:25:45.123Z"
    },
    {
      "version": "7.23.4",
      "format": "cjs",
      "published": "2023-11-20T14:22:17.480Z"
    },
    {
      "version": "7.23.3",
      "format": "cjs",
      "published": "2023-11-09T07:04:07.234Z"
    },
    {
      "version": "7.23.0",
      "format": "cjs",
      "published": "2023-09-25T08:11:26.984Z"
    },
    {
      "version": "7.22.15",
      "format": "cjs",
      "published": "2023-09-04T12:25:17.284Z"
    },
    {
      "version": "7.22.10",
      "format": "cjs",
      "published": "2023-08-07T17:25:20.625Z"
    },
    {
      "version": "7.22.9",
      "format": "cjs",
      "published": "2023-07-12T16:53:31.621Z"
    },
    {
      "version": "7.22.7",
      "format": "cjs",
      "published": "2023-07-06T09:03:56.684Z"
    },
    {
      "version": "7.22.5",
      "format": "cjs",
      "published": "2023-06-08T18:21:25.508Z"
    },
    {
      "version": "7.22.3",
      "format": "cjs",
      "published": "2023-05-27T10:11:08.051Z"
    },
    {
      "version": "7.22.0",
      "format": "cjs",
      "published": "2023-05-26T13:45:38.218Z"
    },
    {
      "version": "7.21.9",
      "format": "cjs",
      "published": "2023-05-22T10:02:19.412Z"
    },
    {
      "version": "7.21.5",
      "format": "cjs",
      "published": "2023-04-28T19:50:23.719Z"
    },
    {
      "version": "7.21.4",
      "format": "cjs",
      "published": "2023-03-31T09:01:56.714Z"
    },
    {
      "version": "7.21.3",
      "format": "cjs",
      "published": "2023-03-14T14:59:41.307Z"
    },
    {
      "version": "7.21.1",
      "format": "cjs",
      "published": "2023-02-20T23:25:40.373Z"
    },
    {
      "version": "7.21.0",
      "format": "cjs",
      "published": "2023-02-20T15:31:11.412Z"
    },
    {
      "version": "7.20.14",
      "format": "cjs",
      "published": "2023-01-27T20:57:28.938Z"
    },
    {
      "version": "7.20.7",
      "format": "cjs",
      "published": "2022-12-22T09:45:28.471Z"
    },
    {
      "version": "7.20.5",
      "format": "cjs",
      "published": "2022-11-28T10:12:47.678Z"
    },
    {
      "version": "7.20.4",
      "format": "cjs",
      "published": "2022-11-08T22:25:10.291Z"
    },
    {
      "version": "7.20.3",
      "format": "cjs",
      "published": "2022-11-07T14:21:05.497Z"
    },
    {
      "version": "7.20.2",
      "format": "cjs",
      "published": "2022-11-04T18:51:06.729Z"
    },
    {
      "version": "7.20.1",
      "format": "cjs",
      "published": "2022-11-01T11:25:40.658Z"
    }
  ]
}