{
  "name": "domhandler",
  "url": "https://canirequire.com/package/domhandler/",
  "description": "Handler for htmlparser2 that turns pages into a dom",
  "latest": "6.0.1",
  "latestPublished": "2026-03-17T16:24:50.639Z",
  "format": "esm-only",
  "summary": "domhandler@6.0.1 is ESM-only. domhandler dropped its CommonJS build in 6.0.0 (March 2026). The last version you can require() on every Node.js version, including 18 and older, is 5.0.3, published Apr 30, 2022. On Node.js 20.19+, 22.12+ and every newer release, require(\"domhandler\") 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. domhandler@6.0.1 declares engines \">=20.19.0\", so Node.js 18 is outside its supported range regardless of module format.",
  "esmOnlySince": "6.0.0",
  "esmOnlySinceDate": "2026-03-17T16:01:54.050Z",
  "lastCommonJsVersion": "5.0.3",
  "lastCommonJsDate": "2022-04-30T11:00:14.978Z",
  "nativeEsmSince": "5.0.0",
  "types": "bundled",
  "nodeEngines": ">=20.19.0",
  "deprecated": null,
  "license": "BSD-2-Clause",
  "repository": "https://github.com/fb55/domhandler",
  "weeklyDownloads": 95149396,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:48.176Z",
    "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": "6.0.1",
      "format": "esm-only",
      "published": "2026-03-17T16:24:50.639Z"
    },
    {
      "version": "6.0.0",
      "format": "esm-only",
      "published": "2026-03-17T16:01:54.050Z"
    },
    {
      "version": "5.0.3",
      "format": "dual",
      "published": "2022-04-30T11:00:14.978Z"
    },
    {
      "version": "5.0.2",
      "format": "dual",
      "published": "2022-04-09T09:38:04.565Z"
    },
    {
      "version": "5.0.1",
      "format": "dual",
      "published": "2022-04-08T16:36:51.950Z"
    },
    {
      "version": "5.0.0",
      "format": "dual",
      "published": "2022-04-08T16:25:18.056Z"
    },
    {
      "version": "4.3.1",
      "format": "cjs",
      "published": "2022-03-19T12:22:32.959Z"
    },
    {
      "version": "4.3.0",
      "format": "cjs",
      "published": "2021-11-30T15:18:56.338Z"
    },
    {
      "version": "4.2.2",
      "format": "cjs",
      "published": "2021-08-29T14:18:56.906Z"
    },
    {
      "version": "4.2.1",
      "format": "cjs",
      "published": "2021-08-29T14:08:36.172Z"
    },
    {
      "version": "4.2.0",
      "format": "cjs",
      "published": "2021-04-16T09:05:11.149Z"
    },
    {
      "version": "4.1.0",
      "format": "cjs",
      "published": "2021-04-01T17:47:49.262Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2020-12-02T01:54:14.340Z"
    },
    {
      "version": "3.3.0",
      "format": "cjs",
      "published": "2020-10-03T21:32:19.135Z"
    },
    {
      "version": "3.2.0",
      "format": "cjs",
      "published": "2020-09-25T19:02:24.669Z"
    },
    {
      "version": "3.1.0",
      "format": "cjs",
      "published": "2020-09-23T20:33:12.125Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2019-08-02T01:19:59.568Z"
    },
    {
      "version": "2.4.2",
      "format": "cjs",
      "published": "2018-05-09T19:07:24.683Z"
    },
    {
      "version": "2.4.1",
      "format": "cjs",
      "published": "2017-05-07T02:59:06.685Z"
    },
    {
      "version": "2.4.0",
      "format": "cjs",
      "published": "2017-05-07T02:48:31.220Z"
    },
    {
      "version": "2.3.0",
      "format": "cjs",
      "published": "2014-11-04T19:06:15.413Z"
    },
    {
      "version": "2.2.1",
      "format": "cjs",
      "published": "2014-10-30T11:05:12.890Z"
    },
    {
      "version": "2.2.0",
      "format": "cjs",
      "published": "2013-12-12T14:14:39.358Z"
    },
    {
      "version": "2.1.0",
      "format": "cjs",
      "published": "2013-09-04T13:53:30.048Z"
    },
    {
      "version": "2.0.3",
      "format": "cjs",
      "published": "2013-04-15T14:06:53.530Z"
    },
    {
      "version": "2.0.2",
      "format": "cjs",
      "published": "2013-02-17T21:34:38.441Z"
    },
    {
      "version": "2.0.1",
      "format": "cjs",
      "published": "2012-11-10T14:03:04.229Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2012-11-10T13:53:25.346Z"
    },
    {
      "version": "1.3.2",
      "format": "cjs",
      "published": "2012-09-23T11:24:54.321Z"
    },
    {
      "version": "1.3.1",
      "format": "cjs",
      "published": "2012-09-22T12:17:04.700Z"
    },
    {
      "version": "1.3.0",
      "format": "cjs",
      "published": "2012-09-22T12:06:18.201Z"
    },
    {
      "version": "1.2.0",
      "format": "cjs",
      "published": "2012-09-09T22:27:47.293Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2012-08-23T18:39:01.597Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2012-08-15T09:27:06.055Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2012-08-14T14:57:14.272Z"
    }
  ]
}